Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 199837
b: refs/heads/master
c: c2572b7
h: refs/heads/master
i:
  199835: 8f296b0
v: v3
  • Loading branch information
Axel Lin authored and Greg Kroah-Hartman committed Jun 4, 2010
1 parent 866e56f commit 714083a
Show file tree
Hide file tree
Showing 2 changed files with 5 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: 6a1a82df91fa0eb1cc76069a9efe5714d087eccd
refs/heads/master: c2572b78aa0447244a38e555ebb1b3b48a0088a5
6 changes: 4 additions & 2 deletions trunk/drivers/usb/class/cdc-acm.c
Original file line number Diff line number Diff line change
Expand Up @@ -1201,7 +1201,7 @@ static int acm_probe(struct usb_interface *intf,
if (rcv->urb == NULL) {
dev_dbg(&intf->dev,
"out of memory (read urbs usb_alloc_urb)\n");
goto alloc_fail7;
goto alloc_fail6;
}

rcv->urb->transfer_flags |= URB_NO_TRANSFER_DMA_MAP;
Expand All @@ -1225,7 +1225,7 @@ static int acm_probe(struct usb_interface *intf,
if (snd->urb == NULL) {
dev_dbg(&intf->dev,
"out of memory (write urbs usb_alloc_urb)");
goto alloc_fail7;
goto alloc_fail8;
}

if (usb_endpoint_xfer_int(epwrite))
Expand Down Expand Up @@ -1264,6 +1264,7 @@ static int acm_probe(struct usb_interface *intf,
i = device_create_file(&intf->dev,
&dev_attr_iCountryCodeRelDate);
if (i < 0) {
device_remove_file(&intf->dev, &dev_attr_wCountryCodes);
kfree(acm->country_codes);
goto skip_countries;
}
Expand Down Expand Up @@ -1300,6 +1301,7 @@ static int acm_probe(struct usb_interface *intf,
usb_free_urb(acm->wb[i].urb);
alloc_fail7:
acm_read_buffers_free(acm);
alloc_fail6:
for (i = 0; i < num_rx_buf; i++)
usb_free_urb(acm->ru[i].urb);
usb_free_urb(acm->ctrlurb);
Expand Down

0 comments on commit 714083a

Please sign in to comment.