Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 303547
b: refs/heads/master
c: 8788fa0
h: refs/heads/master
i:
  303545: 26faaf1
  303543: 403fbb3
v: v3
  • Loading branch information
Michael Grzeschik authored and Greg Kroah-Hartman committed Apr 18, 2012
1 parent 6776dcc commit c4c21b0
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 8cb2268001f9553f9ff83416ce3f009c4ab1e089
refs/heads/master: 8788fa0344419d1d9bd1be3f61f1f0c4d9c1d568
6 changes: 5 additions & 1 deletion trunk/drivers/usb/host/isp1760-hcd.c
Original file line number Diff line number Diff line change
Expand Up @@ -1562,11 +1562,14 @@ static int isp1760_urb_enqueue(struct usb_hcd *hcd, struct urb *urb,

if (!test_bit(HCD_FLAG_HW_ACCESSIBLE, &hcd->flags)) {
retval = -ESHUTDOWN;
qtd_list_free(&new_qtds);
goto out;
}
retval = usb_hcd_link_urb_to_ep(hcd, urb);
if (retval)
if (retval) {
qtd_list_free(&new_qtds);
goto out;
}

qh = urb->ep->hcpriv;
if (qh) {
Expand All @@ -1584,6 +1587,7 @@ static int isp1760_urb_enqueue(struct usb_hcd *hcd, struct urb *urb,
if (!qh) {
retval = -ENOMEM;
usb_hcd_unlink_urb_from_ep(hcd, urb);
qtd_list_free(&new_qtds);
goto out;
}
list_add_tail(&qh->qh_list, ep_queue);
Expand Down

0 comments on commit c4c21b0

Please sign in to comment.