]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
Bluetooth: 6lowpan: Fix using chan->conn as indication to no remote netdev
authorLuiz Augusto von Dentz <luiz.von.dentz@intel.com>
Fri, 12 Jun 2026 14:21:09 +0000 (10:21 -0400)
committerLuiz Augusto von Dentz <luiz.von.dentz@intel.com>
Mon, 6 Jul 2026 14:46:17 +0000 (10:46 -0400)
commitd38eaf611839b85ade3dd3db309dbc8aaaaf0095
tree6b5bd2653e155a5fa8d29265997a1c98f829df55
parent1b0d946d6f08bd39211385bc703a440911b41e46
Bluetooth: 6lowpan: Fix using chan->conn as indication to no remote netdev

b66774b48dd9 ("Bluetooth: L2CAP: Fix UAF in channel timeout by holding
conn ref") don't reset the chan->conn to NULL anymore making the bt#
netdev not be remove once the last l2cap_chan_del is removed.

Instead of restoring the original behavior this remove the logic of
keeping the interface after the last channel is removed because it
never worked as intended and the l2cap_chan_del always detach its
l2cap_conn which results in always removing the channel anyway.

Fixes: b66774b48dd9 ("Bluetooth: L2CAP: Fix UAF in channel timeout by holding conn ref")
Signed-off-by: Luiz Augusto von Dentz <luiz.von.dentz@intel.com>
net/bluetooth/6lowpan.c