diff options
Diffstat (limited to 'drivers/bluetooth/btusb.c')
-rw-r--r-- | drivers/bluetooth/btusb.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/drivers/bluetooth/btusb.c b/drivers/bluetooth/btusb.c index 2fb38027f3bb..44bc8bbabf54 100644 --- a/drivers/bluetooth/btusb.c +++ b/drivers/bluetooth/btusb.c | |||
@@ -600,11 +600,13 @@ static int btusb_close(struct hci_dev *hdev) | |||
600 | btusb_stop_traffic(data); | 600 | btusb_stop_traffic(data); |
601 | err = usb_autopm_get_interface(data->intf); | 601 | err = usb_autopm_get_interface(data->intf); |
602 | if (err < 0) | 602 | if (err < 0) |
603 | return 0; | 603 | goto failed; |
604 | 604 | ||
605 | data->intf->needs_remote_wakeup = 0; | 605 | data->intf->needs_remote_wakeup = 0; |
606 | usb_autopm_put_interface(data->intf); | 606 | usb_autopm_put_interface(data->intf); |
607 | 607 | ||
608 | failed: | ||
609 | usb_scuttle_anchored_urbs(&data->deferred); | ||
608 | return 0; | 610 | return 0; |
609 | } | 611 | } |
610 | 612 | ||