]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
USB: ssu100: fix overrun-error reporting
authorJohan Hovold <johan@kernel.org>
Tue, 18 Nov 2014 10:25:21 +0000 (11:25 +0100)
committerZefan Li <lizefan@huawei.com>
Tue, 14 Apr 2015 09:33:36 +0000 (17:33 +0800)
commit7167d3360126aba157f25708fbd567e66e1a8deb
tree2c48caa611a2fc0cacd5f70dcb4632178b20c470
parent1fb787ce35c51cdd788eab6ef968b6313e931fcd
USB: ssu100: fix overrun-error reporting

commit 75bcbf29c284dd0154c3e895a0bd1ef0e796160e upstream.

Fix reporting of overrun errors, which should only be reported once
using the inserted null character.

Fixes: 6b8f1ca5581b ("USB: ssu100: set tty_flags in ssu100_process_packet")
Signed-off-by: Johan Hovold <johan@kernel.org>
[lizf: Backported to 3.4:
 - adjust context
 - lookup tty using tty_port_tty_get()]
Signed-off-by: Zefan Li <lizefan@huawei.com>
drivers/usb/serial/ssu100.c