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)
commit4eb1b01de5b9d8596d6c103efcf1a15cfc1bedf7
tree5a2c8f269d5cd43eb05885c6fd9f73719b83d8da
parent976a54d0f4202cb412a3b1fc7f117e1d97db35f3
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