|
@@ -633,7 +633,8 @@ void tty_port_close(struct tty_port *port, struct tty_struct *tty,
|
|
|
if (tty_port_close_start(port, tty, filp) == 0)
|
|
|
return;
|
|
|
tty_port_shutdown(port, tty);
|
|
|
- set_bit(TTY_IO_ERROR, &tty->flags);
|
|
|
+ if (!port->console)
|
|
|
+ set_bit(TTY_IO_ERROR, &tty->flags);
|
|
|
tty_port_close_end(port, tty);
|
|
|
tty_port_tty_set(port, NULL);
|
|
|
}
|