tty: flush flip buffer on ldisc input queue flush
commitc5c34d4862e18ef07c1276d233507f540fb5a532
authorPaul Fulghum <paulkf@microgate.com>
Sat, 12 May 2007 17:36:55 +0000 (12 10:36 -0700)
committerLinus Torvalds <torvalds@woody.linux-foundation.org>
Sat, 12 May 2007 17:55:39 +0000 (12 10:55 -0700)
treea0645f236a8bd2492476d1e24fbf94d5cd7edc30
parente3bf460f3eb86cdbc76725a0dac1f191e796676c
tty: flush flip buffer on ldisc input queue flush

Flush the tty flip buffer when the line discipline input queue is flushed,
including the user call tcflush(TCIFLUSH/TCIOFLUSH).  This prevents
unexpected stale data after a user application calls tcflush().

Signed-off-by: Alan Cox <alan@redhat.com>
Cc: Antonino Ingargiola <tritemio@gmail.com>
Signed-off-by: Paul Fulghum <paulkf@microgate.com>
Cc: Theodore Ts'o <tytso@mit.edu>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
drivers/char/tty_io.c