]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit5218607b63671a2394417e11c45031bb5c4928b9
treeef4c8c589c4cd3562489e98b857be6b03258c320
parent0e9b308e1a375d230b5b8f651fafe4259e4db43e
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