aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/tools/perf/scripts/python
diff options
context:
space:
mode:
authorPavel Shpakovskiy <pashpakovskii@salutedevices.com>2025-08-22 12:20:55 +0300
committerLuiz Augusto von Dentz <luiz.von.dentz@intel.com>2025-08-22 13:57:31 -0400
commit6bbd0d3f0c23fc53c17409dd7476f38ae0ff0cd9 (patch)
tree5b68aa254f49728930cf24f742c262d17168c5df /tools/perf/scripts/python
parentBluetooth: hci_event: Disconnect device when BIG sync is lost (diff)
downloadwireguard-linux-6bbd0d3f0c23fc53c17409dd7476f38ae0ff0cd9.tar.xz
wireguard-linux-6bbd0d3f0c23fc53c17409dd7476f38ae0ff0cd9.zip
Bluetooth: hci_sync: fix set_local_name race condition
Function set_name_sync() uses hdev->dev_name field to send HCI_OP_WRITE_LOCAL_NAME command, but copying from data to hdev->dev_name is called after mgmt cmd was queued, so it is possible that function set_name_sync() will read old name value. This change adds name as a parameter for function hci_update_name_sync() to avoid race condition. Fixes: 6f6ff38a1e14 ("Bluetooth: hci_sync: Convert MGMT_OP_SET_LOCAL_NAME") Signed-off-by: Pavel Shpakovskiy <pashpakovskii@salutedevices.com> Reviewed-by: Paul Menzel <pmenzel@molgen.mpg.de> Signed-off-by: Luiz Augusto von Dentz <luiz.von.dentz@intel.com>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions