diff options
| author | Niels Dossche <[email protected]> | 2022-03-21 23:55:16 +0100 |
|---|---|---|
| committer | Kalle Valo <[email protected]> | 2022-04-06 14:44:11 +0300 |
| commit | 3e12968f6d12a34b540c39cbd696a760cc4616f0 (patch) | |
| tree | 74b2bf8325604a9c2957a95a9149a68a5eec2c1a /tools/perf/scripts/python/compaction-times.py | |
| parent | 65ee4971a262a024e239e5d2b7f4dee1b3dff40e (diff) | |
mwifiex: add mutex lock for call in mwifiex_dfs_chan_sw_work_queue
cfg80211_ch_switch_notify uses ASSERT_WDEV_LOCK to assert that
net_device->ieee80211_ptr->mtx (which is the same as priv->wdev.mtx)
is held during the function's execution.
mwifiex_dfs_chan_sw_work_queue is one of its callers, which does not
hold that lock, therefore violating the assertion.
Add a lock around the call.
Disclaimer:
I am currently working on a static analyser to detect missing locks.
This was a reported case. I manually verified the report by looking
at the code, so that I do not send wrong information or patches.
After concluding that this seems to be a true positive, I created
this patch.
However, as I do not in fact have this particular hardware,
I was unable to test it.
Reviewed-by: Brian Norris <[email protected]>
Signed-off-by: Niels Dossche <[email protected]>
Signed-off-by: Kalle Valo <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Diffstat (limited to 'tools/perf/scripts/python/compaction-times.py')
0 files changed, 0 insertions, 0 deletions