staging: vt6656: Fix crash when WLAN is turned off
Stop submitting urbs before calling usb_kill_urb() and usb_free_urb(). Signed-off-by: Philipp Hortmann <philipp.g.hortmann@gmail.com> Link: https://lore.kernel.org/r/20220203192201.GA18509@matrix-ESPRIMO-P710 Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
c531c785bc
commit
3a797f364f
|
@ -230,7 +230,9 @@ static void vnt_start_interrupt_urb_complete(struct urb *urb)
|
|||
else
|
||||
vnt_int_process_data(priv);
|
||||
|
||||
status = usb_submit_urb(priv->interrupt_urb, GFP_ATOMIC);
|
||||
if (!test_bit(DEVICE_FLAGS_DISCONNECTED, &priv->flags))
|
||||
status = usb_submit_urb(priv->interrupt_urb, GFP_ATOMIC);
|
||||
|
||||
if (status)
|
||||
dev_dbg(&priv->usb->dev, "Submit int URB failed %d\n", status);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue