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>
Thu, 12 Dec 2013 06:37:55 +0000 (22:37 -0800)
commit8aa61f36bb68b7544a7c955658e29556f866bb6a
treedff9634af64e1dad4314593841be276553429556
parent003bd1d4842bb9a34cbd1513e19183e94323931f
n_tty: Fix missing newline echo

commit 39434abd942c8e4b9c14c06a03b3245beaf8467f upstream.

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.

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