Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 185390
b: refs/heads/master
c: 2b626dc
h: refs/heads/master
v: v3
  • Loading branch information
Oliver Neukum authored and Greg Kroah-Hartman committed Mar 2, 2010
1 parent 534ed68 commit 0a683cc
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 6 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: d7e18a9f2c506467ec7a9c066da45a0f60c6f5a6
refs/heads/master: 2b626dc134d38d0001b98acf8c7293b6bc5ee86d
11 changes: 6 additions & 5 deletions trunk/drivers/usb/class/cdc-acm.c
Original file line number Diff line number Diff line change
Expand Up @@ -553,7 +553,7 @@ static int acm_tty_open(struct tty_struct *tty, struct file *filp)

acm = acm_table[tty->index];
if (!acm || !acm->dev)
goto err_out;
goto out;
else
rv = 0;

Expand All @@ -569,8 +569,9 @@ static int acm_tty_open(struct tty_struct *tty, struct file *filp)

mutex_lock(&acm->mutex);
if (acm->port.count++) {
mutex_unlock(&acm->mutex);
usb_autopm_put_interface(acm->control);
goto done;
goto out;
}

acm->ctrlurb->dev = acm->dev;
Expand Down Expand Up @@ -599,18 +600,18 @@ static int acm_tty_open(struct tty_struct *tty, struct file *filp)
set_bit(ASYNCB_INITIALIZED, &acm->port.flags);
rv = tty_port_block_til_ready(&acm->port, tty, filp);
tasklet_schedule(&acm->urb_task);
done:

mutex_unlock(&acm->mutex);
err_out:
out:
mutex_unlock(&open_mutex);
return rv;

full_bailout:
usb_kill_urb(acm->ctrlurb);
bail_out:
usb_autopm_put_interface(acm->control);
acm->port.count--;
mutex_unlock(&acm->mutex);
usb_autopm_put_interface(acm->control);
early_bail:
mutex_unlock(&open_mutex);
tty_port_tty_set(&acm->port, NULL);
Expand Down

0 comments on commit 0a683cc

Please sign in to comment.