Patch "Bluetooth: iso: Always release hdev at the end of iso_listen_bis" has been added to the 6.12-stable tree

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



This is a note to let you know that I've just added the patch titled

    Bluetooth: iso: Always release hdev at the end of iso_listen_bis

to the 6.12-stable tree which can be found at:
    http://www.kernel.org/git/?p=linux/kernel/git/stable/stable-queue.git;a=summary

The filename of the patch is:
     bluetooth-iso-always-release-hdev-at-the-end-of-iso_.patch
and it can be found in the queue-6.12 subdirectory.

If you, or anyone else, feels it should not be added to the stable tree,
please let <stable@xxxxxxxxxxxxxxx> know about it.



commit b54dc682a0d0296ea3729759e4dbc323e6e30db1
Author: Iulia Tanasescu <iulia.tanasescu@xxxxxxx>
Date:   Wed Dec 4 14:28:48 2024 +0200

    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@xxxxxxx>
    Signed-off-by: Luiz Augusto von Dentz <luiz.von.dentz@xxxxxxxxx>
    Signed-off-by: Sasha Levin <sashal@xxxxxxxxxx>

diff --git a/net/bluetooth/iso.c b/net/bluetooth/iso.c
index 7212fd6047b9..34eade4b0587 100644
--- a/net/bluetooth/iso.c
+++ b/net/bluetooth/iso.c
@@ -1158,10 +1158,9 @@ static int iso_listen_bis(struct sock *sk)
 		goto unlock;
 	}
 
-	hci_dev_put(hdev);
-
 unlock:
 	hci_dev_unlock(hdev);
+	hci_dev_put(hdev);
 	return err;
 }
 




[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux