diff options
author | David S. Miller <davem@davemloft.net> | 2016-05-16 13:56:37 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2016-05-16 13:56:37 -0400 |
commit | 2ffd7e035601268915a393ae0b7cac34c27e190e (patch) | |
tree | 39b976a58eb3acdf0a47999aebc2696a2c8f737f /net | |
parent | 14d7e48751925b4d48f0fd2317b0570fd243f6fd (diff) | |
parent | 72f9f8b58bc743e6b6abdc68f60db98486c3ffcf (diff) |
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.c | 4 |
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) | |||
3139 | list_del(&hdev->list); | 3139 | list_del(&hdev->list); |
3140 | write_unlock(&hci_dev_list_lock); | 3140 | write_unlock(&hci_dev_list_lock); |
3141 | 3141 | ||
3142 | hci_dev_do_close(hdev); | ||
3143 | |||
3144 | cancel_work_sync(&hdev->power_on); | 3142 | cancel_work_sync(&hdev->power_on); |
3145 | 3143 | ||
3144 | hci_dev_do_close(hdev); | ||
3145 | |||
3146 | if (!test_bit(HCI_INIT, &hdev->flags) && | 3146 | if (!test_bit(HCI_INIT, &hdev->flags) && |
3147 | !hci_dev_test_flag(hdev, HCI_SETUP) && | 3147 | !hci_dev_test_flag(hdev, HCI_SETUP) && |
3148 | !hci_dev_test_flag(hdev, HCI_CONFIG)) { | 3148 | !hci_dev_test_flag(hdev, HCI_CONFIG)) { |