diff --git a/drivers/tty/n_tty.c b/drivers/tty/n_tty.c index c7f71cb8ee1ffed079158efe6ec2cac3b4c2eb28..e63beab3d1c3484a00defae0cb5778c02b515592 100644 --- a/drivers/tty/n_tty.c +++ b/drivers/tty/n_tty.c @@ -1574,6 +1574,7 @@ static void n_tty_set_termios(struct tty_struct *tty, struct ktermios *old) bitmap_zero(ldata->read_flags, N_TTY_BUF_SIZE); ldata->canon_head = ldata->read_tail; ldata->erasing = 0; + ldata->lnext = 0; } if (canon_change && !L_ICANON(tty) && read_cnt(ldata))