]> www.infradead.org Git - users/jedix/linux-maple.git/commit
Bluetooth: ISO: Use kref to track lifetime of iso_conn
authorLuiz Augusto von Dentz <luiz.von.dentz@intel.com>
Tue, 1 Oct 2024 20:15:51 +0000 (16:15 -0400)
committerLuiz Augusto von Dentz <luiz.von.dentz@intel.com>
Thu, 14 Nov 2024 20:39:22 +0000 (15:39 -0500)
commitdc26097bdb864a0d5955b9a25e43376ffc1af99b
tree17da438a1f08c2ce8fd57215ee404ed75d3c00bc
parente6720779ae612a14ac4ba7fe4fd5b27d900d932c
Bluetooth: ISO: Use kref to track lifetime of iso_conn

This make use of kref to keep track of reference of iso_conn which
allows better tracking of its lifetime with usage of things like
kref_get_unless_zero in a similar way as used in l2cap_chan.

In addition to it remove call to iso_sock_set_timer on iso_sock_disconn
since at that point it is useless to set a timer as the sk will be freed
there is nothing to be done in iso_sock_timeout.

Fixes: ccf74f2390d6 ("Bluetooth: Add BTPROTO_ISO socket type")
Signed-off-by: Luiz Augusto von Dentz <luiz.von.dentz@intel.com>
net/bluetooth/iso.c