diff --git a/[refs] b/[refs] index 3032ddc35466..1cddbb936d38 100644 --- a/[refs] +++ b/[refs] @@ -1,2 +1,2 @@ --- -refs/heads/master: 6a20bd45fda271bd57e3ba41b3de3009797f4b5e +refs/heads/master: e2efafbf139d2bfdfe96f2901f03189fecd172e4 diff --git a/trunk/drivers/tty/tty_io.c b/trunk/drivers/tty/tty_io.c index c05c5af5aa04..878f6d667b17 100644 --- a/trunk/drivers/tty/tty_io.c +++ b/trunk/drivers/tty/tty_io.c @@ -1310,7 +1310,8 @@ static int tty_reopen(struct tty_struct *tty) { struct tty_driver *driver = tty->driver; - if (test_bit(TTY_CLOSING, &tty->flags)) + if (test_bit(TTY_CLOSING, &tty->flags) || + test_bit(TTY_LDISC_CHANGING, &tty->flags)) return -EIO; if (driver->type == TTY_DRIVER_TYPE_PTY &&