diff options
| author | Luiz Augusto von Dentz <luiz.von.dentz@intel.com> | 2025-09-26 18:48:50 +0300 |
|---|---|---|
| committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2025-11-13 23:33:58 +0300 |
| commit | fd25c5bb96b3149b7de7b9b994fbae590be21e32 (patch) | |
| tree | 229cfe49b06312fbb13bb6ebf0f64b274868f600 /net/bluetooth | |
| parent | 825ce373fd709abeda79bd6ff5211536f41922cf (diff) | |
| download | linux-fd25c5bb96b3149b7de7b9b994fbae590be21e32.tar.xz | |
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 <luiz.von.dentz@intel.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
Diffstat (limited to 'net/bluetooth')
| -rw-r--r-- | net/bluetooth/iso.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net/bluetooth/iso.c b/net/bluetooth/iso.c index f48a694b004a..c9a262f97678 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) { |
