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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 21 Mar 2020 07:11:49 +0000 (08:11 +0100)
commitdd0d2d6ab6a2c13382512f9bd11634fc7588568a
treec81de50eee0a7a78a80944394592dda8baa442f5
parentccb747d805d3552e99019e3f8b9c2a28e75cacdf
HID: hid-bigbenff: fix race condition for scheduled work during removal

[ Upstream commit 4eb1b01de5b9d8596d6c103efcf1a15cfc1bedf7 ]

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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/hid/hid-bigbenff.c