Merge 3.12-rc3 into tty-next
authorGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 30 Sep 2013 01:44:13 +0000 (18:44 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 30 Sep 2013 01:44:13 +0000 (18:44 -0700)
We want the tty/serial fixes in here as well.

Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
1  2 
drivers/tty/n_tty.c
drivers/tty/serial/pch_uart.c

@@@ -1752,11 -1752,13 +1752,10 @@@ int is_ignored(int sig
  static void n_tty_set_termios(struct tty_struct *tty, struct ktermios *old)
  {
        struct n_tty_data *ldata = tty->disc_data;
 -      int canon_change = 1;
  
 -      if (old)
 -              canon_change = (old->c_lflag ^ tty->termios.c_lflag) & ICANON;
 -      if (canon_change) {
 +      if (!old || (old->c_lflag ^ tty->termios.c_lflag) & ICANON) {
                bitmap_zero(ldata->read_flags, N_TTY_BUF_SIZE);
-               ldata->line_start = 0;
-               ldata->canon_head = ldata->read_tail;
+               ldata->line_start = ldata->canon_head = ldata->read_tail;
                ldata->erasing = 0;
                ldata->lnext = 0;
        }
Simple merge