Skip to content

Commit f0c200a

Browse files
committed
Bluetooth: ISO: Fix BIS connection dst_type handling
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: 6a5ad25 ("Bluetooth: ISO: Fix possible circular locking dependency") Signed-off-by: Luiz Augusto von Dentz <luiz.von.dentz@intel.com>
1 parent 09b0cd1 commit f0c200a

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

net/bluetooth/iso.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2032,7 +2032,7 @@ static void iso_conn_ready(struct iso_conn *conn)
20322032
*/
20332033
if (!bacmp(&hcon->dst, BDADDR_ANY)) {
20342034
bacpy(&hcon->dst, &iso_pi(parent)->dst);
2035-
hcon->dst_type = iso_pi(parent)->dst_type;
2035+
hcon->dst_type = le_addr_type(iso_pi(parent)->dst_type);
20362036
}
20372037

20382038
if (test_bit(HCI_CONN_PA_SYNC, &hcon->flags)) {

0 commit comments

Comments
 (0)