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)
committerJohan Hovold <johan@kernel.org>
Tue, 19 May 2020 07:46:06 +0000 (09:46 +0200)
commit986c1748c84d7727defeaeca74a73b37f7d5cce1
tree5133fad4c159a3ba4b929971e36d63ebc5473980
parent788a4ee607e8d138269fdba7c53f6f233b0e2e36
USB: serial: usb_wwan: do not resubmit rx urb on fatal errors

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>
drivers/usb/serial/usb_wwan.c