]> git.baikalelectronics.ru Git - kernel.git/commit
HID: hid-bigbenff: fix race condition for scheduled work during removal
authorHanno Zulla <kontakt@hanno.de>
Tue, 18 Feb 2020 11:39:31 +0000 (12:39 +0100)
committerBenjamin Tissoires <benjamin.tissoires@redhat.com>
Tue, 18 Feb 2020 13:43:51 +0000 (14:43 +0100)
commit7c839f9fdf823b2f89a2c926839efa9e44e91ab1
tree5a2c8f269d5cd43eb05885c6fd9f73719b83d8da
parent344a4b3bb33683cff5ce2cca7e5d3fa795780c9f
HID: hid-bigbenff: fix race condition for scheduled work during removal

It's possible that there is scheduled work left while the device is
already being removed, which can cause a kernel crash. Adding a flag
will avoid this.

Signed-off-by: Hanno Zulla <kontakt@hanno.de>
Signed-off-by: Benjamin Tissoires <benjamin.tissoires@redhat.com>
drivers/hid/hid-bigbenff.c