Merge tag 'dt-for-linus-2' of git://git.kernel.org/pub/scm/linux/kernel/git/arm/arm-soc
[platform/adaptation/renesas_rcar/renesas_kernel.git] / net / bluetooth / smp.c
index 5abefb1..b2296d3 100644 (file)
@@ -522,7 +522,7 @@ void smp_chan_destroy(struct l2cap_conn *conn)
        kfree(smp);
        conn->smp_chan = NULL;
        conn->hcon->smp_conn = NULL;
-       hci_conn_put(conn->hcon);
+       hci_conn_drop(conn->hcon);
 }
 
 int smp_user_confirm_reply(struct hci_conn *hcon, u16 mgmt_op, __le32 passkey)