]> git.ipfire.org Git - people/arne_f/kernel.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:59 +0000 (09:22 +0200)
commitda380bf104009f9986275fe657907ee71dc44cc0
treee43bcf945ccecac1add6a4cc5a09a56e90fb6cf9
parentff9afd12c93a12e719350f03860924763c2e27af
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