diff options
author | 2022-02-13 00:14:30 +0100 | |
---|---|---|
committer | 2022-03-04 16:30:58 +0100 | |
commit | 4bd80d7a4039ac605a1e9ae767d2b01dbfc9b61e (patch) | |
tree | d648fcbfee8696d8a0a4b6f0bf8f16cf600dcf25 /tools/perf/scripts/python/export-to-sqlite.py | |
parent | Bluetooth: hci_event: Add missing locking on hdev in hci_le_ext_adv_term_evt (diff) | |
download | linux-dev-4bd80d7a4039ac605a1e9ae767d2b01dbfc9b61e.tar.xz linux-dev-4bd80d7a4039ac605a1e9ae767d2b01dbfc9b61e.zip |
Bluetooth: move adv_instance_cnt read within the device lock
The field adv_instance_cnt is always accessed within a device lock,
except in the function add_advertising. A concurrent remove of an
advertisement with adding another one could result in the if check
"if a new instance was actually added" to not trigger, resulting
in not triggering the "advertising added event".
Signed-off-by: Niels Dossche <niels.dossche@ugent.be>
Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
Diffstat (limited to 'tools/perf/scripts/python/export-to-sqlite.py')
0 files changed, 0 insertions, 0 deletions