]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit9b69d221e52666f8dd32d8f6e6169df3559175d5
treed171ad4472ae3ac4b70679a3fcd71cc43bbd8583
parent9cc68d46eb08872f3a00176a9f134f2e85e30d4f
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