aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--drivers/char/tty_ldisc.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/char/tty_ldisc.c b/drivers/char/tty_ldisc.c
index 94b3e06d73ec..874c2486c034 100644
--- a/drivers/char/tty_ldisc.c
+++ b/drivers/char/tty_ldisc.c
@@ -793,6 +793,8 @@ void tty_ldisc_hangup(struct tty_struct *tty)
793 /* Avoid racing set_ldisc */ 793 /* Avoid racing set_ldisc */
794 mutex_lock(&tty->ldisc_mutex); 794 mutex_lock(&tty->ldisc_mutex);
795 /* Switch back to N_TTY */ 795 /* Switch back to N_TTY */
796 tty_ldisc_halt(tty);
797 tty_ldisc_wait_idle(tty);
796 tty_ldisc_reinit(tty); 798 tty_ldisc_reinit(tty);
797 /* At this point we have a closed ldisc and we want to 799 /* At this point we have a closed ldisc and we want to
798 reopen it. We could defer this to the next open but 800 reopen it. We could defer this to the next open but