]> git.baikalelectronics.ru Git - kernel.git/commit
n_tty: Fix throttle for canon lines > 3967 chars
authorPeter Hurley <peter@hurleysoftware.com>
Fri, 16 Jan 2015 20:05:35 +0000 (15:05 -0500)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 2 Feb 2015 18:11:26 +0000 (10:11 -0800)
commit0d1db4056bb556ddd014afe3a5e77b5d9ae8a490
tree9c46111ae604d1e3eae2f5973c755af62ef5cb73
parent5dea5232fec4581768d294cbd16474f098d83f30
n_tty: Fix throttle for canon lines > 3967 chars

The tty driver will be mistakenly throttled if a line termination
has not been received, and the line exceeds 3967 chars. Thus, it is
possible for the driver to stop sending when it has not yet sent
the newline. This does not apply to the pty driver.

Don't throttle until at least one line termination has been
received.

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