aboutsummaryrefslogtreecommitdiffstats
path: root/net
diff options
context:
space:
mode:
Diffstat (limited to 'net')
-rw-r--r--net/bluetooth/hci_core.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/net/bluetooth/hci_core.c b/net/bluetooth/hci_core.c
index adea7de95633..2312e77582b0 100644
--- a/net/bluetooth/hci_core.c
+++ b/net/bluetooth/hci_core.c
@@ -5317,7 +5317,10 @@ void hci_update_background_scan(struct hci_dev *hdev)
5317 struct hci_conn *conn; 5317 struct hci_conn *conn;
5318 int err; 5318 int err;
5319 5319
5320 if (test_bit(HCI_UNREGISTER, &hdev->dev_flags)) 5320 if (!test_bit(HCI_UP, &hdev->flags) ||
5321 test_bit(HCI_INIT, &hdev->flags) ||
5322 test_bit(HCI_SETUP, &hdev->dev_flags) ||
5323 test_bit(HCI_UNREGISTER, &hdev->dev_flags))
5321 return; 5324 return;
5322 5325
5323 hci_req_init(&req, hdev); 5326 hci_req_init(&req, hdev);