diff options
author | David S. Miller <davem@davemloft.net> | 2008-09-12 04:11:50 +0200 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2008-09-12 04:11:50 +0200 |
commit | d58b622b5de9747c82fcc3548f3ec87a02c24dce (patch) | |
tree | ecdd2bc45ab13e3450221fcfaaedd5d286747fad | |
parent | netlink: fix overrun in attribute iteration (diff) | |
parent | [Bluetooth] Fix regression from using default link policy (diff) | |
download | linux-d58b622b5de9747c82fcc3548f3ec87a02c24dce.tar.xz linux-d58b622b5de9747c82fcc3548f3ec87a02c24dce.zip |
Merge branch 'master' of git://git.kernel.org/pub/scm/linux/kernel/git/holtmann/bluetooth-2.6
-rw-r--r-- | net/bluetooth/hci_core.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/net/bluetooth/hci_core.c b/net/bluetooth/hci_core.c index f5b21cb93699..278a3ace14f6 100644 --- a/net/bluetooth/hci_core.c +++ b/net/bluetooth/hci_core.c @@ -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); |