USB-Serial: Fix error handling of usb_wwan
authorMatt Burtch <matt@grid-net.com>
Mon, 12 Aug 2013 17:11:39 +0000 (10:11 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 20 Aug 2013 15:43:05 +0000 (08:43 -0700)
commit237e0153190c92a4deb80782973f60557a6b2cdb
tree15dd6fca8d5781befd710f1253453ec4bdc95bbd
parentc72a0e036f9d80c609e608a723751343f1f5e9fc
USB-Serial: Fix error handling of usb_wwan

commit 6c1ee66a0b2bdbd64c078fba684d640cf2fd38a9 upstream.

This fixes an issue where the bulk-in urb used for incoming data transfer
is not resubmitted if the packet recieved contains an error status.  This
results in the driver locking until the port is closed and re-opened.

Tested on a custom board with a Cinterion GSM module.

Signed-off-by: Matt Burtch <matt@grid-net.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/serial/usb_wwan.c