Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 86059
b: refs/heads/master
c: 94409cc
h: refs/heads/master
i:
  86057: 8c37464
  86055: 611038c
v: v3
  • Loading branch information
Oliver Neukum authored and Greg Kroah-Hartman committed Feb 21, 2008
1 parent 5c3a672 commit a1fb657
Show file tree
Hide file tree
Showing 2 changed files with 6 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: 59036e94732edc2fb957465008c68bbcfc6736fa
refs/heads/master: 94409cc1e507b157f8442dad80ff5e560c3205e5
10 changes: 5 additions & 5 deletions trunk/drivers/usb/class/cdc-acm.c
Original file line number Diff line number Diff line change
Expand Up @@ -496,13 +496,10 @@ static int acm_tty_open(struct tty_struct *tty, struct file *filp)
otherwise it is scheduled, and with high data rates data can get lost. */
tty->low_latency = 1;

if (usb_autopm_get_interface(acm->control)) {
mutex_unlock(&open_mutex);
return -EIO;
}
if (usb_autopm_get_interface(acm->control) < 0)
goto early_bail;

mutex_lock(&acm->mutex);
mutex_unlock(&open_mutex);
if (acm->used++) {
usb_autopm_put_interface(acm->control);
goto done;
Expand Down Expand Up @@ -536,6 +533,7 @@ static int acm_tty_open(struct tty_struct *tty, struct file *filp)
done:
err_out:
mutex_unlock(&acm->mutex);
mutex_unlock(&open_mutex);
return rv;

full_bailout:
Expand All @@ -544,6 +542,8 @@ static int acm_tty_open(struct tty_struct *tty, struct file *filp)
usb_autopm_put_interface(acm->control);
acm->used--;
mutex_unlock(&acm->mutex);
early_bail:
mutex_unlock(&open_mutex);
return -EIO;
}

Expand Down

0 comments on commit a1fb657

Please sign in to comment.