Commit 15846f9
wifi: mac80211: take lock before setting vif links
ieee80211_vif_set_links requires the sdata->local->mtx lock to be held.
Add the appropriate locking around the calls in both the link add and
remove handlers.
This causes a warning when e.g. ieee80211_link_release_channel is called
via ieee80211_link_stop from ieee80211_vif_update_links.
Fixes: 0d8c4a3 ("wifi: mac80211: implement add/del interface link callbacks")
Signed-off-by: Benjamin Berg <benjamin.berg@intel.com>
Signed-off-by: Gregory Greenman <gregory.greenman@intel.com>
Link: https://lore.kernel.org/r/20230608163202.fa0c6597fdad.I83dd70359f6cda30f86df8418d929c2064cf4995@changeid
Signed-off-by: Johannes Berg <johannes.berg@intel.com>1 parent 1ff5668 commit 15846f9
1 file changed
Lines changed: 8 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4865 | 4865 | | |
4866 | 4866 | | |
4867 | 4867 | | |
| 4868 | + | |
4868 | 4869 | | |
4869 | 4870 | | |
4870 | 4871 | | |
4871 | 4872 | | |
4872 | | - | |
| 4873 | + | |
| 4874 | + | |
| 4875 | + | |
| 4876 | + | |
| 4877 | + | |
4873 | 4878 | | |
4874 | 4879 | | |
4875 | 4880 | | |
| |||
4878 | 4883 | | |
4879 | 4884 | | |
4880 | 4885 | | |
| 4886 | + | |
4881 | 4887 | | |
| 4888 | + | |
4882 | 4889 | | |
4883 | 4890 | | |
4884 | 4891 | | |
| |||
0 commit comments