USB: keyspan: fix tty line-status reporting
authorJohan Hovold <johan@kernel.org>
Tue, 18 Nov 2014 10:25:19 +0000 (11:25 +0100)
committerJohan Hovold <johan@kernel.org>
Wed, 19 Nov 2014 15:22:21 +0000 (16:22 +0100)
commit5d1678a33c731b56e245e888fdae5e88efce0997
tree297aad03ca184a50ac923dc5b1d76204a4ad8248
parent204ec6e07ea7aff863df0f7c53301f9cbbfbb9d3
USB: keyspan: fix tty line-status reporting

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")
Cc: stable <stable@vger.kernel.org>
Signed-off-by: Johan Hovold <johan@kernel.org>
drivers/usb/serial/keyspan.c