cdc-acm: handle read pipe errors
authorLadislav Michl <ladis@linux-mips.org>
Fri, 18 Nov 2016 18:11:26 +0000 (19:11 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 21 Nov 2016 10:36:16 +0000 (11:36 +0100)
commit1aba579f3cf51fd0fe0b4d46cc13823fd1200acb
tree1a522a1fc4aa36b8ed75eecfb5e05f8fa67afead
parentd305394ee8c4132bcea0bb36fd6a360a415376bf
cdc-acm: handle read pipe errors

Read urbs are submitted back only on success, causing read pipe
running out of urbs after few errors. No more characters can
be read from tty device then until it is reopened and no errors
are reported.
Fix that by always submitting urbs back and clearing stall on
-EPIPE.

Signed-off-by: Ladislav Michl <ladis@linux-mips.org>
Acked-by: Oliver Neukum <oneukum@suse.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/class/cdc-acm.c
drivers/usb/class/cdc-acm.h