]> git.proxmox.com Git - mirror_ubuntu-artful-kernel.git/blobdiff - net/bluetooth/hci_sock.c
Bluetooth: Avoid using GFP_ATOMIC where not necessary
[mirror_ubuntu-artful-kernel.git] / net / bluetooth / hci_sock.c
index 7552f9e3089ce790040268f1ce0a067d6ef728cb..68e51a84e72ddb4f2eeba3fc76458d6a8f8a1c06 100644 (file)
@@ -716,6 +716,7 @@ static int hci_sock_bind(struct socket *sock, struct sockaddr *addr,
                err = hci_dev_open(hdev->id);
                if (err) {
                        clear_bit(HCI_USER_CHANNEL, &hdev->dev_flags);
+                       mgmt_index_added(hdev);
                        hci_dev_put(hdev);
                        goto done;
                }