Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 243691
b: refs/heads/master
c: b77dcf8
h: refs/heads/master
i:
  243689: 3efec40
  243687: 926ebaa
v: v3
  • Loading branch information
Thomas Gleixner authored and Gustavo F. Padovan committed Mar 24, 2011
1 parent 9978c3a commit 09668ce
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 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: a0cc9a1b5712ea52aaa4e7abfa0ec2dbe0d820ff
refs/heads/master: b77dcf8460ae57d4eb9fd3633eb4f97b8fb20716
4 changes: 3 additions & 1 deletion trunk/net/bluetooth/hci_core.c
Original file line number Diff line number Diff line change
Expand Up @@ -587,6 +587,9 @@ static int hci_dev_do_close(struct hci_dev *hdev)
hci_req_cancel(hdev, ENODEV);
hci_req_lock(hdev);

/* Stop timer, it might be running */
del_timer_sync(&hdev->cmd_timer);

if (!test_and_clear_bit(HCI_UP, &hdev->flags)) {
hci_req_unlock(hdev);
return 0;
Expand Down Expand Up @@ -626,7 +629,6 @@ static int hci_dev_do_close(struct hci_dev *hdev)

/* Drop last sent command */
if (hdev->sent_cmd) {
del_timer_sync(&hdev->cmd_timer);
kfree_skb(hdev->sent_cmd);
hdev->sent_cmd = NULL;
}
Expand Down

0 comments on commit 09668ce

Please sign in to comment.