n_tty: Fix EOF push index when termios changes
authorPeter Hurley <peter@hurleysoftware.com>
Tue, 17 Sep 2013 16:34:14 +0000 (12:34 -0400)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 17 Sep 2013 17:10:51 +0000 (10:10 -0700)
commit93a8d4163ecd3fd8aac264707f1d497f193ea88d
tree83ed198c768be81863e2f5d49ebc1667b7d66d27
parent0b53861230729f60a4a02a838fb51a2345b16f71
n_tty: Fix EOF push index when termios changes

Commit 40d5e0905a03601d40cd4e46b8690093c2355d03,
'n_tty: Fix EOF push handling' introduced a subtle state
change error wrt EOF push handling when the termios is
changed from non-canonical to canonical mode.

Reset line_start to the current read_tail index, not 0.

Signed-off-by: Peter Hurley <peter@hurleysoftware.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/tty/n_tty.c