]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
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>
Thu, 11 Jun 2020 07:22:22 +0000 (09:22 +0200)
commit337741cd29da175a3d3f0194eedb183fa30330f0
tree21aad22e47bc0f5631cf743bce1c9a464aac57d1
parent3a0808691d40b27b1d1e6f09a8a0a0c9fc17e4bb
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