File tree 1 file changed +4
-1
lines changed
1 file changed +4
-1
lines changed Original file line number Diff line number Diff line change @@ -1135,7 +1135,8 @@ int ieee80211_mesh_finish_csa(struct ieee80211_sub_if_data *sdata)
1135
1135
ifmsh -> chsw_ttl = 0 ;
1136
1136
1137
1137
/* Remove the CSA and MCSP elements from the beacon */
1138
- tmp_csa_settings = rcu_dereference (ifmsh -> csa );
1138
+ tmp_csa_settings = rcu_dereference_protected (ifmsh -> csa ,
1139
+ lockdep_is_held (& sdata -> wdev .mtx ));
1139
1140
RCU_INIT_POINTER (ifmsh -> csa , NULL );
1140
1141
if (tmp_csa_settings )
1141
1142
kfree_rcu (tmp_csa_settings , rcu_head );
@@ -1157,6 +1158,8 @@ int ieee80211_mesh_csa_beacon(struct ieee80211_sub_if_data *sdata,
1157
1158
struct mesh_csa_settings * tmp_csa_settings ;
1158
1159
int ret = 0 ;
1159
1160
1161
+ lockdep_assert_held (& sdata -> wdev .mtx );
1162
+
1160
1163
tmp_csa_settings = kmalloc (sizeof (* tmp_csa_settings ),
1161
1164
GFP_ATOMIC );
1162
1165
if (!tmp_csa_settings )
You can’t perform that action at this time.
0 commit comments