diff options
Diffstat (limited to 'drivers/usb/serial/usb-serial.c')
-rw-r--r-- | drivers/usb/serial/usb-serial.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/usb/serial/usb-serial.c b/drivers/usb/serial/usb-serial.c index 0c39b55aeef4..bd7581b3a48a 100644 --- a/drivers/usb/serial/usb-serial.c +++ b/drivers/usb/serial/usb-serial.c | |||
@@ -221,7 +221,8 @@ static int serial_open (struct tty_struct *tty, struct file *filp) | |||
221 | tty->driver_data = port; | 221 | tty->driver_data = port; |
222 | tty_port_tty_set(&port->port, tty); | 222 | tty_port_tty_set(&port->port, tty); |
223 | 223 | ||
224 | if (port->port.count == 1) { | 224 | /* If the console is attached, the device is already open */ |
225 | if (port->port.count == 1 && !port->console) { | ||
225 | 226 | ||
226 | /* lock this module before we call it | 227 | /* lock this module before we call it |
227 | * this may fail, which means we must bail out, | 228 | * this may fail, which means we must bail out, |