|
@@ -331,6 +331,9 @@ static void btusb_intr_complete(struct urb *urb)
|
|
|
BT_ERR("%s corrupted event packet", hdev->name);
|
|
|
hdev->stat.err_rx++;
|
|
|
}
|
|
|
+ } else if (urb->status == -ENOENT) {
|
|
|
+ /* Avoid suspend failed when usb_kill_urb */
|
|
|
+ return;
|
|
|
}
|
|
|
|
|
|
if (!test_bit(BTUSB_INTR_RUNNING, &data->flags))
|
|
@@ -419,6 +422,9 @@ static void btusb_bulk_complete(struct urb *urb)
|
|
|
BT_ERR("%s corrupted ACL packet", hdev->name);
|
|
|
hdev->stat.err_rx++;
|
|
|
}
|
|
|
+ } else if (urb->status == -ENOENT) {
|
|
|
+ /* Avoid suspend failed when usb_kill_urb */
|
|
|
+ return;
|
|
|
}
|
|
|
|
|
|
if (!test_bit(BTUSB_BULK_RUNNING, &data->flags))
|
|
@@ -513,6 +519,9 @@ static void btusb_isoc_complete(struct urb *urb)
|
|
|
hdev->stat.err_rx++;
|
|
|
}
|
|
|
}
|
|
|
+ } else if (urb->status == -ENOENT) {
|
|
|
+ /* Avoid suspend failed when usb_kill_urb */
|
|
|
+ return;
|
|
|
}
|
|
|
|
|
|
if (!test_bit(BTUSB_ISOC_RUNNING, &data->flags))
|