aboutsummaryrefslogtreecommitdiff
path: root/scripts/basic
diff options
context:
space:
mode:
authorJohan Hovold <johan@kernel.org>2017-02-02 17:38:35 +0100
committerMoyster <oysterized@gmail.com>2017-06-17 15:51:43 +0200
commitba31736b22507ad0608cd34a3219f15a2f6b2b8c (patch)
treeca0b08c0f9321cde94755a5771e2ef3d7a9a560e /scripts/basic
parentd18e4a9ec6499d42e31b370505d94d1b34b39980 (diff)
USB: serial: ftdi_sio: fix line-status over-reporting
commit a6bb1e17a39818b01b55d8e6238b4b5f06d55038 upstream. FTDI devices use a receive latency timer to periodically empty the receive buffer and report modem and line status (also when the buffer is empty). When a break or error condition is detected the corresponding status flags will be set on a packet with nonzero data payload and the flags are not updated until the break is over or further characters are received. In order to avoid over-reporting break and error conditions, these flags must therefore only be processed for packets with payload. This specifically fixes the case where after an overrun, the error condition is continuously reported and NULL-characters inserted until further data is received. Reported-by: Michael Walle <michael@walle.cc> Fixes: 72fda3ca6fc1 ("USB: serial: ftd_sio: implement sysrq handling on break") Fixes: 166ceb690750 ("USB: ftdi_sio: clean up line-status handling") Signed-off-by: Johan Hovold <johan@kernel.org> Signed-off-by: Willy Tarreau <w@1wt.eu>
Diffstat (limited to 'scripts/basic')
0 files changed, 0 insertions, 0 deletions