Bluetooth: Fix wrong module refcount when connection setup fails
[pandora-kernel.git] / net / bluetooth / hci_conn.c
index 61309b2..85a1c6b 100644 (file)
@@ -292,6 +292,8 @@ int hci_conn_del(struct hci_conn *conn)
 
        hci_conn_del_sysfs(conn);
 
+       hci_dev_put(hdev);
+
        return 0;
 }