]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
USB: keyspan: fix tty line-status reporting
authorJohan Hovold <johan@kernel.org>
Tue, 18 Nov 2014 10:25:19 +0000 (11:25 +0100)
committerJiri Slaby <jslaby@suse.cz>
Sat, 6 Dec 2014 14:18:16 +0000 (15:18 +0100)
commitb20d1dbcbf5fec5ae4d574ad482073d9476cd7c1
treec414369a199b56e9505a66789e0e4db48613cea9
parent7f293483b05b6f3472942b9c733daaf05ec2115e
USB: keyspan: fix tty line-status reporting

commit 5d1678a33c731b56e245e888fdae5e88efce0997 upstream.

Fix handling of TTY error flags, which are not bitmasks and must
specifically not be ORed together as this prevents the line discipline
from recognising them.

Also insert null characters when reporting overrun errors as these are
not associated with the received character.

Fixes: 1da177e4c3f4 ("Linux-2.6.12-rc2")
Signed-off-by: Johan Hovold <johan@kernel.org>
Signed-off-by: Jiri Slaby <jslaby@suse.cz>
drivers/usb/serial/keyspan.c