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)
commita342846f9b0448996f56ebece80454d41b431ce2
tree9c46111ae604d1e3eae2f5973c755af62ef5cb73
parent2c5dc4641ca0e046b432f94f7058c4aff3440e47
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