Skip to contentSkip to conversation

Bluetooth: ISO: Fix BIS connection dst_type handling

PATCH Applied Luiz Augusto von Dentz 2 participants 2 messages Sep 26, 2025 – Sep 29, 2025

Subsystems (2)
lore
Share & tools
lore

Luiz Augusto von Dentz

author maintainer
#0 lore raw

PATCH 1/1 Bluetooth: ISO: Fix BIS connection dst_type handling

From: Luiz Augusto von Dentz <[email protected]>

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")
---
 net/bluetooth/iso.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
net/bluetooth/iso.c +1 -1
index 4f10ea750106..318b5b914cc4 100644
@@ -2061,7 +2061,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)) {
Signature · 1 line
2.51.0
#1 lore raw
This patch was applied to bluetooth/bluetooth-next.git (master) by Luiz Augusto von Dentz <[email protected]>:

Hello:

This patch was applied to bluetooth/bluetooth-next.git (master) by Luiz Augusto von Dentz <[email protected]>:

Quoted 10 lines · On Fri, 26 Sep 2025 11:48:50 -0400 you wrote:

From: Luiz Augusto von Dentz <[email protected]>

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")

[...]

Here is the summary with links:
- [v1] Bluetooth: ISO: Fix BIS connection dst_type handling

    https://git.kernel.org/bluetooth/bluetooth-next/c/e325d4d4ace1

You are awesome, thank you!

Signature · 2 lines
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html