Thread (15 messages) 15 messages, 6 authors, 2023-05-10

Re: [PATCH 5/5] HID: sony_remove: manually unregister leds

From: Sven Eckelmann <sven@narfation.org>
Date: 2023-01-26 08:32:59
Also in: linux-leds, lkml

On Thursday, 26 January 2023 01:24:57 CET Pietro Borrello wrote:
Unregister the LED controller before device removal, as
sony_led_set_brightness() may schedule sc->state_worker
after the structure has been freed, causing a use-after-free.

Fixes: 0a286ef27852 ("HID: sony: Add LED support for Sixaxis/Dualshock3 USB")
Signed-off-by: Pietro Borrello <redacted>
---
 drivers/hid/hid-sony.c | 8 ++++++++
 1 file changed, 8 insertions(+)

Reviewed-by: Sven Eckelmann <sven@narfation.org>

Thanks,
	Sven

Attachments

Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help