diff options
author | Sebastian Siewior <sebastian@breakpoint.cc> | 2008-07-17 14:09:28 -0400 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2008-08-13 20:32:53 -0400 |
commit | a36c27dfd1003e6d6842fe77faaf868e3e6e9062 (patch) | |
tree | e493abcdda0db5b71f8d718393fa2b9c39356b18 /drivers/usb/host/isp1760-hcd.c | |
parent | 937ef73d5075997a8d1777abf217a48bef2ce029 (diff) |
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>
Diffstat (limited to 'drivers/usb/host/isp1760-hcd.c')
-rw-r--r-- | drivers/usb/host/isp1760-hcd.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/usb/host/isp1760-hcd.c b/drivers/usb/host/isp1760-hcd.c index c858f2adb929..db5f4f5c7a10 100644 --- a/drivers/usb/host/isp1760-hcd.c +++ b/drivers/usb/host/isp1760-hcd.c | |||
@@ -1615,8 +1615,7 @@ static int isp1760_urb_enqueue(struct usb_hcd *hcd, struct urb *urb, | |||
1615 | return -EPIPE; | 1615 | return -EPIPE; |
1616 | } | 1616 | } |
1617 | 1617 | ||
1618 | isp1760_prepare_enqueue(priv, urb, &qtd_list, mem_flags, pe); | 1618 | return isp1760_prepare_enqueue(priv, urb, &qtd_list, mem_flags, pe); |
1619 | return 0; | ||
1620 | } | 1619 | } |
1621 | 1620 | ||
1622 | static int isp1760_urb_dequeue(struct usb_hcd *hcd, struct urb *urb, | 1621 | static int isp1760_urb_dequeue(struct usb_hcd *hcd, struct urb *urb, |