]> git.ipfire.org Git - thirdparty/linux.git/commit
Bluetooth: hci_sync: remove unnecessary hci_conn_get in create_conn_sync
authorPauli Virtanen <pav@iki.fi>
Sat, 25 Jul 2026 09:59:23 +0000 (12:59 +0300)
committerLuiz Augusto von Dentz <luiz.von.dentz@intel.com>
Tue, 28 Jul 2026 20:13:13 +0000 (16:13 -0400)
commitc0a9dcd2be398eee505d4b254ec3a845aa8ab189
tree0cdd96c4eb673a3dd51ab0ae67feddd4a5b46cf4
parent2c1e4e00613dfd105f978be2276e5e265801ec9f
Bluetooth: hci_sync: remove unnecessary hci_conn_get in create_conn_sync

hci_conn_get() without already held reference is data race against
concurrent deletion.

In previous patches, the refcount has been changed to be taken before
starting the hci_sync task, so remove these extra get() + put() as they
are not needed.

Fixes: 12917f591cea ("Bluetooth: hci_conn: Fix null ptr deref in hci_abort_conn()")
Signed-off-by: Pauli Virtanen <pav@iki.fi>
Signed-off-by: Luiz Augusto von Dentz <luiz.von.dentz@intel.com>
net/bluetooth/hci_sync.c