diff --git a/drivers/tty/tty_io.c b/drivers/tty/tty_io.c index bd88007fa6eaae760941af7eeb0b4e2960bba76b..366af832794b54db8ab9b8b7c7f524bdfe11f464 100644 --- a/drivers/tty/tty_io.c +++ b/drivers/tty/tty_io.c @@ -1618,6 +1618,8 @@ static void release_tty(struct tty_struct *tty, int idx) tty_free_termios(tty); tty_driver_remove_tty(tty->driver, tty); tty->port->itty = NULL; + if (tty->link) + tty->link->port->itty = NULL; cancel_work_sync(&tty->port->buf.work); if (tty->link)