summaryrefslogtreecommitdiffstats
path: root/net
diff options
context:
space:
mode:
authorDavid S. Miller2016-05-16 19:56:37 +0200
committerDavid S. Miller2016-05-16 19:56:37 +0200
commit2ffd7e035601268915a393ae0b7cac34c27e190e (patch)
tree39b976a58eb3acdf0a47999aebc2696a2c8f737f /net
parentMerge branch 'w5100-small-changes' (diff)
parentBluetooth: Add USB ID 13D3:3487 to ath3k (diff)
downloadkernel-qcow2-linux-2ffd7e035601268915a393ae0b7cac34c27e190e.tar.gz
kernel-qcow2-linux-2ffd7e035601268915a393ae0b7cac34c27e190e.tar.xz
kernel-qcow2-linux-2ffd7e035601268915a393ae0b7cac34c27e190e.zip
Merge branch 'for-upstream' of git://git.kernel.org/pub/scm/linux/kernel/git/bluetooth/bluetooth-next
Johan Hedberg says: ==================== pull request: bluetooth-next 2016-05-14 Here are two more Bluetooth patches for the 4.7 kernel which we wanted to get into net-next before the merge window opens. Please let me know if there are any issues pulling. Thanks. ==================== Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net')
-rw-r--r--net/bluetooth/hci_core.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/net/bluetooth/hci_core.c b/net/bluetooth/hci_core.c
index 2713fc86e85a..45a9fc68c677 100644
--- a/net/bluetooth/hci_core.c
+++ b/net/bluetooth/hci_core.c
@@ -3139,10 +3139,10 @@ void hci_unregister_dev(struct hci_dev *hdev)
list_del(&hdev->list);
write_unlock(&hci_dev_list_lock);
- hci_dev_do_close(hdev);
-
cancel_work_sync(&hdev->power_on);
+ hci_dev_do_close(hdev);
+
if (!test_bit(HCI_INIT, &hdev->flags) &&
!hci_dev_test_flag(hdev, HCI_SETUP) &&
!hci_dev_test_flag(hdev, HCI_CONFIG)) {