]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
Bluetooth: iso: Always release hdev at the end of iso_listen_bis
authorIulia Tanasescu <iulia.tanasescu@nxp.com>
Wed, 4 Dec 2024 12:28:48 +0000 (14:28 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 19 Dec 2024 17:13:20 +0000 (18:13 +0100)
commit4ca50db1c567d658d173c5ef3ee6c52b0b03603c
treed51c4dde5cdf262662a8198b9577edfb8fafd249
parentf9ecc90b5d501b3a5a62d0685d5104f934bb0104
Bluetooth: iso: Always release hdev at the end of iso_listen_bis

[ Upstream commit 9c76fff747a73ba01d1d87ed53dd9c00cb40ba05 ]

Since hci_get_route holds the device before returning, the hdev
should be released with hci_dev_put at the end of iso_listen_bis
even if the function returns with an error.

Fixes: 02171da6e86a ("Bluetooth: ISO: Add hcon for listening bis sk")
Signed-off-by: Iulia Tanasescu <iulia.tanasescu@nxp.com>
Signed-off-by: Luiz Augusto von Dentz <luiz.von.dentz@intel.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
net/bluetooth/iso.c