USB: keyspan: fix overrun-error reporting
authorJohan Hovold <johan@kernel.org>
Tue, 18 Nov 2014 10:25:20 +0000 (11:25 +0100)
committerBen Hutchings <ben@decadent.org.uk>
Sun, 14 Dec 2014 16:23:58 +0000 (16:23 +0000)
commit1e8d16df963f66009f0453ae2b29a26fb356e285
tree248fa2b53bbb5574874da96118db67929f2f1114
parent25c5feef23b699c83b9131223b4a726b501f3d25
USB: keyspan: fix overrun-error reporting

commit 855515a6d3731242d85850a206f2ec084c917338 upstream.

Fix reporting of overrun errors, which are not associated with a
character. Instead insert a null character and report only once.

Fixes: 1da177e4c3f4 ("Linux-2.6.12-rc2")
Signed-off-by: Johan Hovold <johan@kernel.org>
[bwh: Backported to 3.2:
 - s/\&port->port/tty/
 - Adjust context, indentation]
Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
drivers/usb/serial/keyspan.c