]> git.baikalelectronics.ru Git - kernel.git/commit
HID: usbhid: cancel timer for retry synchronously
authorOliver Neukum <oliver@neukum.org>
Thu, 13 Oct 2011 16:21:58 +0000 (18:21 +0200)
committerJiri Kosina <jkosina@suse.cz>
Thu, 13 Oct 2011 16:21:58 +0000 (18:21 +0200)
commit8986f685202a47f43ca098e70b196c01c9c8f274
tree3d7fe18ab3d42e000c557e2b2f9da5d80b95ae99
parenteda1af76a6a4ed0407bd86e1d17152d8f1045763
HID: usbhid: cancel timer for retry synchronously

This makes sure IO is never restarted while a reset is going on

In particular there seems to be no protection from hid_retry_timeout() calling
hid_start_in() which would start IO after hid_pre_reset() has already called
hid_cease_io() because that uses del_timer(), not del_timer_sync()

Signed-off-by: Oliver Neukum <oneukum@suse.de>
Signed-off-by: Jiri Kosina <jkosina@suse.cz>
drivers/hid/usbhid/hid-core.c