mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2025-01-18 02:46:06 +00:00
USB HID: avoid flush_scheduled_work()
This patch (as914) replaces a call to flush_scheduled_work() with cancel_work_sync(), in order to help avoid potential deadlocks. Signed-off-by: Alan Stern <stern@rowland.harvard.edu> Signed-off-by: Jiri Kosina <jkosina@suse.cz>
This commit is contained in:
parent
3cd709866f
commit
2fa45a4cff
@ -956,7 +956,7 @@ static void hid_disconnect(struct usb_interface *intf)
|
||||
usb_kill_urb(usbhid->urbctrl);
|
||||
|
||||
del_timer_sync(&usbhid->io_retry);
|
||||
flush_scheduled_work();
|
||||
cancel_work_sync(&usbhid->reset_work);
|
||||
|
||||
if (hid->claimed & HID_CLAIMED_INPUT)
|
||||
hidinput_disconnect(hid);
|
||||
|
Loading…
x
Reference in New Issue
Block a user