diff --git a/net/bluetooth/hci_conn.c b/net/bluetooth/hci_conn.c index b7ff6e3ee25c..5ec0db423169 100644 --- a/net/bluetooth/hci_conn.c +++ b/net/bluetooth/hci_conn.c @@ -453,6 +453,9 @@ int hci_conn_del(struct hci_conn *conn) hci_dev_put(hdev); + if (conn->handle == 0) + kfree(conn); + return 0; }