diff options
-rw-r--r-- | drivers/tty/n_tty.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/tty/n_tty.c b/drivers/tty/n_tty.c index 0ad32888091c..1ddc5d7c9592 100644 --- a/drivers/tty/n_tty.c +++ b/drivers/tty/n_tty.c | |||
@@ -185,7 +185,6 @@ static void reset_buffer_flags(struct tty_struct *tty) | |||
185 | tty->canon_head = tty->canon_data = tty->erasing = 0; | 185 | tty->canon_head = tty->canon_data = tty->erasing = 0; |
186 | memset(&tty->read_flags, 0, sizeof tty->read_flags); | 186 | memset(&tty->read_flags, 0, sizeof tty->read_flags); |
187 | n_tty_set_room(tty); | 187 | n_tty_set_room(tty); |
188 | check_unthrottle(tty); | ||
189 | } | 188 | } |
190 | 189 | ||
191 | /** | 190 | /** |
@@ -1587,6 +1586,7 @@ static int n_tty_open(struct tty_struct *tty) | |||
1587 | return -ENOMEM; | 1586 | return -ENOMEM; |
1588 | } | 1587 | } |
1589 | reset_buffer_flags(tty); | 1588 | reset_buffer_flags(tty); |
1589 | tty_unthrottle(tty); | ||
1590 | tty->column = 0; | 1590 | tty->column = 0; |
1591 | n_tty_set_termios(tty, NULL); | 1591 | n_tty_set_termios(tty, NULL); |
1592 | tty->minimum_to_wake = 1; | 1592 | tty->minimum_to_wake = 1; |