]> git.baikalelectronics.ru Git - kernel.git/commit
serial: core: Remove unsafe x_char optimization
authorPeter Hurley <peter@hurleysoftware.com>
Tue, 2 Sep 2014 21:39:14 +0000 (17:39 -0400)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 8 Sep 2014 23:22:42 +0000 (16:22 -0700)
commitbd5f4bf2932736c54e6946b0edeefbd4f36be33a
treebbab00d9c8d6e0bb52e053dedf873ae4ac5c4482
parente4096c60de98dfe755b968052352817c109d16a0
serial: core: Remove unsafe x_char optimization

uart_unthrottle() attempts to avoid sending START and the previous
x_char if the previous x_char has not yet been sent. However, this
optimization could leave the sender in a throttled state; for example,
if the sender is throttled and this unthrottle coincides with a manual
tcflow(TCION) from user-space, then neither START would be sent.

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