Skip to content

Commit

Permalink
usb: return error code instead of 0 in the enqueue function.
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Sebastian Siewior authored and Greg Kroah-Hartman committed Aug 14, 2008
1 parent 937ef73 commit a36c27d
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions drivers/usb/host/isp1760-hcd.c
Original file line number Diff line number Diff line change
Expand Up @@ -1615,8 +1615,7 @@ static int isp1760_urb_enqueue(struct usb_hcd *hcd, struct urb *urb,
return -EPIPE;
}

isp1760_prepare_enqueue(priv, urb, &qtd_list, mem_flags, pe);
return 0;
return isp1760_prepare_enqueue(priv, urb, &qtd_list, mem_flags, pe);
}

static int isp1760_urb_dequeue(struct usb_hcd *hcd, struct urb *urb,
Expand Down

0 comments on commit a36c27d

Please sign in to comment.