]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
Bluetooth: ISO: ensure no dangling hcon references in iso_conn
authorPauli Virtanen <pav@iki.fi>
Fri, 24 Jul 2026 20:20:32 +0000 (23:20 +0300)
committerLuiz Augusto von Dentz <luiz.von.dentz@intel.com>
Tue, 28 Jul 2026 20:13:12 +0000 (16:13 -0400)
commitaa9f7cb2bd3a2be998ceb739fc9a2f986eba43eb
treeafec7b248e051f6d1106131f25ff96cde2ba51c3
parent200fa1629c57a3ca2b03d3ca63fd3a9bfd910c43
Bluetooth: ISO: ensure no dangling hcon references in iso_conn

After iso_conn_del(), ISO sockets should not dereference the hcon any
more.  Currently, clearing iso_conn::hcon relies on iso_conn_del()
releasing the last reference to the iso_conn.

Simplify this by explicitly clearing conn->hcon in iso_conn_del(), to
avoid more complex reasoning on races about who holds the last
reference.

Signed-off-by: Pauli Virtanen <pav@iki.fi>
Signed-off-by: Luiz Augusto von Dentz <luiz.von.dentz@intel.com>
net/bluetooth/iso.c