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)
commiteb055fd0560b9835e9e1a956aa6a83c51a735801
tree172b9b1d4b88354d0349d12f0ef8c89628901c57
parentd4150c8f3d80b4a9387083478a86da8b3390dd83
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