]> git.baikalelectronics.ru Git - kernel.git/commit
HID: asus: use spinlock to protect concurrent accesses
authorPietro Borrello <borrello@diag.uniroma1.it>
Sun, 12 Feb 2023 19:00:02 +0000 (19:00 +0000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 10 Mar 2023 08:32:31 +0000 (09:32 +0100)
commit7b90a8b0ff370c09fc01a8edeb616f896ce42bc4
tree43159d87070f7ee49919a3b0a6f8334c7bfa929e
parenta0002f547b6fa1779d52c250d1747371d438e10c
HID: asus: use spinlock to protect concurrent accesses

commit e5a5cda2e483e4705f8c928c607e9ffe163c62b4 upstream.

asus driver has a worker that may access data concurrently.
Proct the accesses using a spinlock.

Fixes: dd7622c7552f ("HID: asus: support backlight on USB keyboards")
Signed-off-by: Pietro Borrello <borrello@diag.uniroma1.it>
Link: https://lore.kernel.org/r/20230125-hid-unregister-leds-v4-4-7860c5763c38@diag.uniroma1.it
Signed-off-by: Benjamin Tissoires <benjamin.tissoires@redhat.com>
Signed-off-by: Stefan Ghinea <stefan.ghinea@windriver.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/hid/hid-asus.c