n_tty: Fix missing newline echo
authorPeter Hurley <peter@hurleysoftware.com>
Fri, 29 Nov 2013 17:56:10 +0000 (12:56 -0500)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 29 Nov 2013 20:53:19 +0000 (12:53 -0800)
commit39434abd942c8e4b9c14c06a03b3245beaf8467f
treed171ad4472ae3ac4b70679a3fcd71cc43bbd8583
parentc42b4e6501cdaabee8cc292ae1ef0f66bf4825c1
n_tty: Fix missing newline echo

When L_ECHONL is on, newlines are echoed regardless of the L_ECHO
state; if set, ensure accumulated echoes are flushed before finishing
the current input processing and before more output.

Cc: <stable@vger.kernel.org> # 3.12.x
Reported-by: Jason Gunthorpe <jgunthorpe@obsidianresearch.com
Tested-by: Jason Gunthorpe <jgunthorpe@obsidianresearch.com>
Signed-off-by: Peter Hurley <peter@hurleysoftware.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/tty/n_tty.c