]> git.ipfire.org Git - thirdparty/linux.git/commit
Bluetooth: ISO: lock sk in iso_sock_getname
authorPauli Virtanen <pav@iki.fi>
Fri, 24 Jul 2026 20:20:25 +0000 (23:20 +0300)
committerLuiz Augusto von Dentz <luiz.von.dentz@intel.com>
Tue, 28 Jul 2026 20:13:11 +0000 (16:13 -0400)
commit89cf154d7c18e6e94a3da83051f3cf2bac317ae2
treeb409ad1ddf477b28ff8872a8825e0cfeb3257320
parent0786469ee242952008628ed0e2d386098e2065ab
Bluetooth: ISO: lock sk in iso_sock_getname

Accessing iso_pi(sk)->conn requires lock_sock, which is not held here.

Fix by adding the lock/release.

Fixes: 2df108c227b2 ("Bluetooth: ISO: Fix using BT_SK_PA_SYNC to detect BIS sockets")
Signed-off-by: Pauli Virtanen <pav@iki.fi>
Signed-off-by: Luiz Augusto von Dentz <luiz.von.dentz@intel.com>
net/bluetooth/iso.c