Peter Hurley e2613be509 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>
2014-02-13 10:02:19 -08:00
..
2013-01-15 22:30:15 -08:00
2013-03-18 16:24:29 -07:00
2013-12-08 16:56:05 -08:00
2014-02-13 10:02:19 -08:00
2013-10-16 13:08:16 -07:00
2013-07-24 15:12:53 -07:00
2014-01-07 17:05:21 -08:00
2013-12-16 16:55:43 -08:00