Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 110029
b: refs/heads/master
c: e8c3c3d
h: refs/heads/master
i:
  110027: 2fcdb06
v: v3
  • Loading branch information
Marcel Holtmann committed Sep 22, 2008
1 parent dc363a2 commit abe9f4d
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: bdbef3d696ca83489eb653459b5a7a62ecf5596a
refs/heads/master: e8c3c3d22b340a406a9aab1b7a9f436636c3de9d
6 changes: 4 additions & 2 deletions trunk/drivers/bluetooth/btusb.c
Original file line number Diff line number Diff line change
Expand Up @@ -519,7 +519,7 @@ static int btusb_open(struct hci_dev *hdev)

err = btusb_submit_intr_urb(hdev);
if (err < 0) {
clear_bit(BTUSB_INTR_RUNNING, &hdev->flags);
clear_bit(BTUSB_INTR_RUNNING, &data->flags);
clear_bit(HCI_RUNNING, &hdev->flags);
}

Expand All @@ -535,8 +535,10 @@ static int btusb_close(struct hci_dev *hdev)
if (!test_and_clear_bit(HCI_RUNNING, &hdev->flags))
return 0;

cancel_work_sync(&data->work);

clear_bit(BTUSB_ISOC_RUNNING, &data->flags);
usb_kill_anchored_urbs(&data->intr_anchor);
usb_kill_anchored_urbs(&data->isoc_anchor);

clear_bit(BTUSB_BULK_RUNNING, &data->flags);
usb_kill_anchored_urbs(&data->bulk_anchor);
Expand Down

0 comments on commit abe9f4d

Please sign in to comment.