Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 369001
b: refs/heads/master
c: 53cce22
h: refs/heads/master
i:
  368999: f594f70
v: v3
  • Loading branch information
Johan Hedberg authored and Gustavo Padovan committed Mar 8, 2013
1 parent ff87121 commit 746906f
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 01178cd420e0134ef3fb4da161ba6390c66913bf
refs/heads/master: 53cce22dc795e73fb48205e3f584f63f4c71c90c
8 changes: 8 additions & 0 deletions trunk/net/bluetooth/hci_core.c
Original file line number Diff line number Diff line change
Expand Up @@ -122,6 +122,14 @@ static int __hci_req_sync(struct hci_dev *hdev,
set_current_state(TASK_INTERRUPTIBLE);

req(hdev, opt);

/* If the request didn't send any commands return immediately */
if (skb_queue_empty(&hdev->cmd_q) && atomic_read(&hdev->cmd_cnt)) {
hdev->req_status = 0;
remove_wait_queue(&hdev->req_wait_q, &wait);
return err;
}

schedule_timeout(timeout);

remove_wait_queue(&hdev->req_wait_q, &wait);
Expand Down

0 comments on commit 746906f

Please sign in to comment.