Skip to content

Commit

Permalink
Merge branch 'master' of git://git.kernel.org/pub/scm/linux/kernel/gi…
Browse files Browse the repository at this point in the history
…t/holtmann/bluetooth-2.6
  • Loading branch information
David S. Miller committed Sep 12, 2008
2 parents 1045b03 + 7c6a329 commit d58b622
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions net/bluetooth/hci_core.c
Original file line number Diff line number Diff line change
Expand Up @@ -164,6 +164,9 @@ static inline int hci_request(struct hci_dev *hdev, void (*req)(struct hci_dev *
{
int ret;

if (!test_bit(HCI_UP, &hdev->flags))
return -ENETDOWN;

/* Serialize all requests */
hci_req_lock(hdev);
ret = __hci_request(hdev, req, opt, timeout);
Expand Down

0 comments on commit d58b622

Please sign in to comment.