From: Luiz Augusto von Dentz Date: Fri, 26 Sep 2025 15:48:50 +0000 (-0400) Subject: Bluetooth: ISO: Fix BIS connection dst_type handling X-Git-Tag: v6.12.58~519 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=fd25c5bb96b3149b7de7b9b994fbae590be21e32;p=thirdparty%2Fkernel%2Fstable.git Bluetooth: ISO: Fix BIS connection dst_type handling [ 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 Signed-off-by: Sasha Levin --- diff --git a/net/bluetooth/iso.c b/net/bluetooth/iso.c index f48a694b004ab..c9a262f97678b 100644 --- a/net/bluetooth/iso.c +++ b/net/bluetooth/iso.c @@ -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) {