diff options
author | Jeongik Cha <jeongik@google.com> | 2022-07-04 17:43:54 +0900 |
---|---|---|
committer | Johannes Berg <johannes.berg@intel.com> | 2022-07-11 10:22:02 +0200 |
commit | 4ee186fa7e40ae06ebbfbad77e249e3746e14114 (patch) | |
tree | 66b1702d07769591234a775bb8a80af4d98eb7eb /tools/perf/scripts/python/export-to-sqlite.py | |
parent | 37babce9127f3145366a8f36334f24afa9a5d196 (diff) |
wifi: mac80211_hwsim: fix race condition in pending packet
A pending packet uses a cookie as an unique key, but it can be duplicated
because it didn't use atomic operators.
And also, a pending packet can be null in hwsim_tx_info_frame_received_nl
due to race condition with mac80211_hwsim_stop.
For this,
* Use an atomic type and operator for a cookie
* Add a lock around the loop for pending packets
Signed-off-by: Jeongik Cha <jeongik@google.com>
Link: https://lore.kernel.org/r/20220704084354.3556326-1-jeongik@google.com
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Diffstat (limited to 'tools/perf/scripts/python/export-to-sqlite.py')
0 files changed, 0 insertions, 0 deletions