]> git.ipfire.org Git - thirdparty/kernel/stable.git/commitdiff
Bluetooth: ISO: Fix BIS connection dst_type handling
authorLuiz Augusto von Dentz <luiz.von.dentz@intel.com>
Fri, 26 Sep 2025 15:48:50 +0000 (11:48 -0400)
committerLuiz Augusto von Dentz <luiz.von.dentz@intel.com>
Fri, 24 Oct 2025 14:20:34 +0000 (10:20 -0400)
Socket dst_type cannot be directly assigned to hci_conn->type since
there domain is different which may lead to the wrong address type being
used.

Fixes: 6a5ad251b7cd ("Bluetooth: ISO: Fix possible circular locking dependency")
Signed-off-by: Luiz Augusto von Dentz <luiz.von.dentz@intel.com>
net/bluetooth/iso.c

index 9b263d061e051e8f58e1df41dff48a8b27a81422..954e1916506b1b14e83d7c028258450be5e469a2 100644 (file)
@@ -2032,7 +2032,7 @@ static void iso_conn_ready(struct iso_conn *conn)
                 */
                if (!bacmp(&hcon->dst, BDADDR_ANY)) {
                        bacpy(&hcon->dst, &iso_pi(parent)->dst);
-                       hcon->dst_type = iso_pi(parent)->dst_type;
+                       hcon->dst_type = le_addr_type(iso_pi(parent)->dst_type);
                }
 
                if (test_bit(HCI_CONN_PA_SYNC, &hcon->flags)) {