]> git.baikalelectronics.ru Git - kernel.git/commit
usb: return error code instead of 0 in the enqueue function.
authorSebastian Siewior <sebastian@breakpoint.cc>
Thu, 17 Jul 2008 18:09:28 +0000 (20:09 +0200)
committerGreg Kroah-Hartman <gregkh@suse.de>
Thu, 14 Aug 2008 00:32:53 +0000 (17:32 -0700)
commit0e4f923917c4840ac059aa907693331472c6399d
treee493abcdda0db5b71f8d718393fa2b9c39356b18
parent511e8330b3d5b5d466e0a6e07fa39174cedf68c1
usb: return error code instead of 0 in the enqueue function.

if the enqueue function returns -ESHUTDOWN or -ENOMEM then
we return 0 instead of an error. This leads to a timeout and
then to a dequeue request of an not enqueued urb.

Signed-off-by: Sebastian Siewior <sebastian@breakpoint.cc>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/usb/host/isp1760-hcd.c