USB: serial: usb_wwan: do not resubmit rx urb on fatal errors
authorBin Liu <b-liu@ti.com>
Wed, 13 May 2020 21:36:46 +0000 (16:36 -0500)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 10 Jun 2020 18:24:55 +0000 (20:24 +0200)
commit5555c8f569fa46ecce9916e375dc2950302176e5
tree983885fa8382e8dae6bec346d1ef0a0405f710fd
parentf366d3a21f1252b33b3220f9ef4819e9b66b0019
USB: serial: usb_wwan: do not resubmit rx urb on fatal errors

commit 986c1748c84d7727defeaeca74a73b37f7d5cce1 upstream.

usb_wwan_indat_callback() shouldn't resubmit rx urb if the previous urb
status is a fatal error. Or the usb controller would keep processing the
new urbs then run into interrupt storm, and has no chance to recover.

Fixes: 6c1ee66a0b2b ("USB-Serial: Fix error handling of usb_wwan")
Cc: stable@vger.kernel.org
Signed-off-by: Bin Liu <b-liu@ti.com>
Signed-off-by: Johan Hovold <johan@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/serial/usb_wwan.c