n_tty: Ignore all read data when closing
authorPeter Hurley <peter@hurleysoftware.com>
Mon, 11 Jan 2016 04:36:09 +0000 (20:36 -0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 28 Jan 2016 22:13:44 +0000 (14:13 -0800)
commit7f71b2c1441877141651d96c9a380bfb32e2ff78
treeef4c8c589c4cd3562489e98b857be6b03258c320
parentc9c10d912a91735a966d81114b28c4cff81dda59
n_tty: Ignore all read data when closing

On final port close (and thus final tty close), only output flow
control requests in the input data should be processed. Ignore all
other input data, including parity errors, overruns and breaks.

Signed-off-by: Peter Hurley <peter@hurleysoftware.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/tty/n_tty.c