View | Details | Raw Unified | Return to bug 55991 | Differences between
and this patch

Collapse All | Expand All

(-)a/drivers/tty/n_tty.c (-2 / +7 lines)
Lines 1778-1784 static void n_tty_set_termios(struct tty_struct *tty, struct ktermios *old) Link Here
1778
1778
1779
	if (!old || (old->c_lflag ^ tty->termios.c_lflag) & ICANON) {
1779
	if (!old || (old->c_lflag ^ tty->termios.c_lflag) & ICANON) {
1780
		bitmap_zero(ldata->read_flags, N_TTY_BUF_SIZE);
1780
		bitmap_zero(ldata->read_flags, N_TTY_BUF_SIZE);
1781
		ldata->line_start = ldata->canon_head = ldata->read_tail;
1781
		if (!L_ICANON(tty))
1782
			ldata->line_start = ldata->canon_head = ldata->read_tail;
1783
		else if (read_cnt(ldata)) {
1784
			set_bit((ldata->read_head - 1) & (N_TTY_BUF_SIZE - 1),
1785
				ldata->read_flags);
1786
			ldata->canon_head = ldata->read_head;
1787
		}
1782
		ldata->erasing = 0;
1788
		ldata->erasing = 0;
1783
		ldata->lnext = 0;
1789
		ldata->lnext = 0;
1784
	}
1790
	}
1785
- 

Return to bug 55991