Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 133505
b: refs/heads/master
c: 331879f
h: refs/heads/master
i:
  133503: fcfbd48
v: v3
  • Loading branch information
James Woodcock authored and Greg Kroah-Hartman committed Mar 24, 2009
1 parent 79e3946 commit 6cfae90
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 1c27ae671e6b465e04544450276c88f4dba8de60
refs/heads/master: 331879fd6f584d60327ba802616d41bfa636b873
5 changes: 5 additions & 0 deletions trunk/drivers/usb/serial/usb-serial.c
Original file line number Diff line number Diff line change
Expand Up @@ -204,6 +204,11 @@ static int serial_open (struct tty_struct *tty, struct file *filp)
goto bailout_kref_put;
}

if (port->serial->disconnected) {
retval = -ENODEV;
goto bailout_kref_put;
}

if (mutex_lock_interruptible(&port->mutex)) {
retval = -ERESTARTSYS;
goto bailout_kref_put;
Expand Down

0 comments on commit 6cfae90

Please sign in to comment.