From: Peter Hurley Date: Wed, 5 Nov 2014 17:40:05 +0000 (-0500) Subject: tty: Flush tty buffers after hardware shutdown X-Git-Tag: omap-for-v3.19/fixes-rc1~86^2~75 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3f40f5b2a22110754ce469f5722bade8aeb241e5;p=pandora-kernel.git tty: Flush tty buffers after hardware shutdown The line discipline buffer and the tty buffers must be flushed again after hardware shutdown; otherwise, a brief window exists between the ldisc flush in tty_port_close_start() and the subsequent tty_port_shutdown(), during which more data could be received into the tty buffers. A racing open might then be able to receive data from the previous session. Signed-off-by: Peter Hurley Signed-off-by: Greg Kroah-Hartman --- Reading git-diff-tree failed