Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 360773
b: refs/heads/master
c: 114a6f8
h: refs/heads/master
i:
  360771: 11e0ddd
v: v3
  • Loading branch information
Marina Makienko authored and David S. Miller committed Feb 26, 2013
1 parent 9663ca5 commit 9461a8a
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 3 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: 6c8c4e4c24b9f6cee3d356a51e4a7f2af787a49b
refs/heads/master: 114a6f8b52163c0232fbcd7f3808ff04dc61a9b5
12 changes: 10 additions & 2 deletions trunk/drivers/isdn/hisax/st5481_usb.c
Original file line number Diff line number Diff line change
Expand Up @@ -294,13 +294,13 @@ int st5481_setup_usb(struct st5481_adapter *adapter)
// Allocate URBs and buffers for interrupt endpoint
urb = usb_alloc_urb(0, GFP_KERNEL);
if (!urb) {
return -ENOMEM;
goto err1;
}
intr->urb = urb;

buf = kmalloc(INT_PKT_SIZE, GFP_KERNEL);
if (!buf) {
return -ENOMEM;
goto err2;
}

endpoint = &altsetting->endpoint[EP_INT-1];
Expand All @@ -313,6 +313,14 @@ int st5481_setup_usb(struct st5481_adapter *adapter)
endpoint->desc.bInterval);

return 0;
err2:
usb_free_urb(intr->urb);
intr->urb = NULL;
err1:
usb_free_urb(ctrl->urb);
ctrl->urb = NULL;

return -ENOMEM;
}

/*
Expand Down

0 comments on commit 9461a8a

Please sign in to comment.