Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 338628
b: refs/heads/master
c: d0eca71
h: refs/heads/master
v: v3
  • Loading branch information
Sebastian Andrzej Siewior authored and Felipe Balbi committed Oct 31, 2012
1 parent 014dce2 commit ae4f4b4
Show file tree
Hide file tree
Showing 2 changed files with 7 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: 7f2a9268b458b693160f02f0df2bafb83e128750
refs/heads/master: d0eca719dd11ad0619e8dd6a1f3eceb95b0216dd
8 changes: 6 additions & 2 deletions trunk/drivers/usb/gadget/f_phonet.c
Original file line number Diff line number Diff line change
Expand Up @@ -531,7 +531,7 @@ int pn_bind(struct usb_configuration *c, struct usb_function *f)

req = usb_ep_alloc_request(fp->out_ep, GFP_KERNEL);
if (!req)
goto err;
goto err_req;

req->complete = pn_rx_complete;
fp->out_reqv[i] = req;
Expand All @@ -540,14 +540,18 @@ int pn_bind(struct usb_configuration *c, struct usb_function *f)
/* Outgoing USB requests */
fp->in_req = usb_ep_alloc_request(fp->in_ep, GFP_KERNEL);
if (!fp->in_req)
goto err;
goto err_req;

INFO(cdev, "USB CDC Phonet function\n");
INFO(cdev, "using %s, OUT %s, IN %s\n", cdev->gadget->name,
fp->out_ep->name, fp->in_ep->name);
return 0;

err_req:
for (i = 0; i < phonet_rxq_size && fp->out_reqv[i]; i++)
usb_ep_free_request(fp->out_ep, fp->out_reqv[i]);
err:

if (fp->out_ep)
fp->out_ep->driver_data = NULL;
if (fp->in_ep)
Expand Down

0 comments on commit ae4f4b4

Please sign in to comment.