]> git.baikalelectronics.ru Git - kernel.git/commit
HID: usbhid: fix error paths in suspend
authorAlan Stern <stern@rowland.harvard.edu>
Thu, 19 Jul 2012 20:09:01 +0000 (16:09 -0400)
committerJiri Kosina <jkosina@suse.cz>
Fri, 20 Jul 2012 09:24:25 +0000 (11:24 +0200)
commit0ee8cc87629860e2f35f58a1ba319bf5deaec726
tree172b9b1d4b88354d0349d12f0ef8c89628901c57
parent02a0c2b75ff73c101acc3f9635538c223d461283
HID: usbhid: fix error paths in suspend

This patch (as1597) fixes some of the error paths in usbhid's suspend
routine.  The driver was not careful to restart everything that might
have been stopped, in cases where a suspend failed.

For example, once the HID_SUSPENDED flag is set, an output report
submission would not restart the corresponding URB queue.  If a
suspend fails, it's therefore necessary to check whether the queues
need to be restarted.

Signed-off-by: Alan Stern <stern@rowland.harvard.edu>
CC: Oliver Neukum <oliver@neukum.org>
Signed-off-by: Jiri Kosina <jkosina@suse.cz>
drivers/hid/usbhid/hid-core.c