]> 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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 13 Nov 2025 20:33:58 +0000 (15:33 -0500)
[ Upstream commit f0c200a4a537f8f374584a974518b0ce69eda76c ]

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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
net/bluetooth/iso.c

index f48a694b004abea8d979aad0043a4f3694b7373d..c9a262f97678bd1c530341f8d1850533d90d5f1e 100644 (file)
@@ -1927,7 +1927,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 (ev3) {