Skip to content
Snippets Groups Projects
Commit 163f4dab authored by Tomas Targownik's avatar Tomas Targownik Committed by Gustavo F. Padovan
Browse files

Bluetooth: Fix memory leak under page timeouts


If the remote device is not present, the connections attemp fails and
the struct hci_conn was not freed

Signed-off-by: default avatarTomas Targownik <ttargownik@geicp.com>
Signed-off-by: default avatarGustavo F. Padovan <padovan@profusion.mobi>
parent 9fa7e4f7
No related branches found
No related tags found
No related merge requests found
......@@ -393,6 +393,9 @@ int hci_conn_del(struct hci_conn *conn)
hci_dev_put(hdev);
if (conn->handle == 0)
kfree(conn);
return 0;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment