Skip to content

Commit 7a74aeb

Browse files
Ville TervoGustavo F. Padovan
authored andcommitted
Bluetooth: Fix refcount balance for hci connection
hci_io_capa_reply_evt() holds reference for hciconnection. It's useless since hci_io_capa_request_evt()/hci_simple_pair_complete_evt() already protects the connection. In addition it leaves connection open after failed SSP pairing. Signed-off-by: Ville Tervo <ville.tervo@nokia.com> Signed-off-by: Gustavo F. Padovan <padovan@profusion.mobi>
1 parent 332704a commit 7a74aeb

1 file changed

Lines changed: 0 additions & 2 deletions

File tree

‎net/bluetooth/hci_event.c‎

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2387,8 +2387,6 @@ static inline void hci_io_capa_reply_evt(struct hci_dev *hdev, struct sk_buff *s
23872387
if (!conn)
23882388
goto unlock;
23892389

2390-
hci_conn_hold(conn);
2391-
23922390
conn->remote_cap = ev->capability;
23932391
conn->remote_oob = ev->oob_data;
23942392
conn->remote_auth = ev->authentication;

0 commit comments

Comments
 (0)