]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
Bluetooth: ISO: Fix not releasing hdev reference on iso_conn_big_sync
authorLuiz Augusto von Dentz <luiz.von.dentz@intel.com>
Mon, 1 Jun 2026 18:45:42 +0000 (14:45 -0400)
committerLuiz Augusto von Dentz <luiz.von.dentz@intel.com>
Wed, 3 Jun 2026 15:22:48 +0000 (11:22 -0400)
hci_get_route() returns a reference-counted hci_dev pointer via
hci_dev_hold(). The function exits normally or with an error without ever
releasing it.

Fixes: 07a9342b94a9 ("Bluetooth: ISO: Send BIG Create Sync via hci_sync")
Reported-by: Sashiko <sashiko-bot@kernel.org>
Signed-off-by: Luiz Augusto von Dentz <luiz.von.dentz@intel.com>
net/bluetooth/iso.c

index 876649556d3ccca0faaa7d9d2a995ea3c1337066..3d707c43bdc09b19d3225ac36a479c650bb3e1ea 100644 (file)
@@ -1595,6 +1595,7 @@ static void iso_conn_big_sync(struct sock *sk)
 
        release_sock(sk);
        hci_dev_unlock(hdev);
+       hci_dev_put(hdev);
 }
 
 static int iso_sock_recvmsg(struct socket *sock, struct msghdr *msg,