Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 248703
b: refs/heads/master
c: dab54c9
h: refs/heads/master
i:
  248701: 7bae34e
  248699: 84280c3
  248695: c6fd3d1
  248687: 5c9334c
  248671: bf75804
  248639: 97c2811
  248575: 691766d
v: v3
  • Loading branch information
Johan Hovold authored and Greg Kroah-Hartman committed Apr 13, 2011
1 parent 2f558bb commit 2ef3cdb
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 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: 6fb6b8846458afb7b5689f86cf35705c40eb70e5
refs/heads/master: dab54c9f1e26f47a3313300bc1f4dc0eecb47375
14 changes: 7 additions & 7 deletions trunk/drivers/usb/class/cdc-acm.c
Original file line number Diff line number Diff line change
Expand Up @@ -606,24 +606,24 @@ static int acm_tty_open(struct tty_struct *tty, struct file *filp)

static void acm_tty_unregister(struct acm *acm)
{
int i, nr;
int i;

nr = acm->rx_buflimit;
tty_unregister_device(acm_tty_driver, acm->minor);
usb_put_intf(acm->control);
acm_table[acm->minor] = NULL;
usb_free_urb(acm->ctrlurb);
for (i = 0; i < ACM_NW; i++)
usb_free_urb(acm->wb[i].urb);
for (i = 0; i < nr; i++)
for (i = 0; i < acm->rx_buflimit; i++)
usb_free_urb(acm->ru[i].urb);
kfree(acm->country_codes);
kfree(acm);
}

static void acm_port_down(struct acm *acm)
{
int i, nr = acm->rx_buflimit;
int i;

mutex_lock(&open_mutex);
if (acm->dev) {
usb_autopm_get_interface(acm->control);
Expand All @@ -632,7 +632,7 @@ static void acm_port_down(struct acm *acm)
for (i = 0; i < ACM_NW; i++)
usb_kill_urb(acm->wb[i].urb);
tasklet_disable(&acm->urb_task);
for (i = 0; i < nr; i++)
for (i = 0; i < acm->rx_buflimit; i++)
usb_kill_urb(acm->ru[i].urb);
tasklet_enable(&acm->urb_task);
acm->control->needs_remote_wakeup = 0;
Expand Down Expand Up @@ -882,9 +882,9 @@ static void acm_write_buffers_free(struct acm *acm)
static void acm_read_buffers_free(struct acm *acm)
{
struct usb_device *usb_dev = interface_to_usbdev(acm->control);
int i, n = acm->rx_buflimit;
int i;

for (i = 0; i < n; i++)
for (i = 0; i < acm->rx_buflimit; i++)
usb_free_coherent(usb_dev, acm->readsize,
acm->rb[i].base, acm->rb[i].dma);
}
Expand Down

0 comments on commit 2ef3cdb

Please sign in to comment.