]> git.baikalelectronics.ru Git - kernel.git/commit
n_tty: Fix stale echo output
authorPeter Hurley <peter@hurleysoftware.com>
Tue, 11 Feb 2014 21:34:55 +0000 (16:34 -0500)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 13 Feb 2014 18:02:19 +0000 (10:02 -0800)
commit15778086131253a8b650abd4b8866899d72f3d5a
treefd31a291d7f076ba1776cb490ae0baa75f54c712
parentafbca35feab84268e9ca0e1cd44e057fb633b605
n_tty: Fix stale echo output

When echoes cannot be flushed to output (usually because the tty
has no more write room) and L_ECHO is subsequently turned off, then
when L_ECHO is turned back on, stale echoes are output.

Output completed echoes regardless of the L_ECHO setting:
  1. before normal writes to that tty
  2. if the tty was stopped by soft flow control and is being
     restarted

Reported-by: Mikulas Patocka <mpatocka@redhat.com>
Cc: <stable@vger.kernel.org> # 3.13.x
Signed-off-by: Peter Hurley <peter@hurleysoftware.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/tty/n_tty.c