File tree Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Expand file tree Collapse file tree 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)
11351135 ifmsh -> chsw_ttl = 0 ;
11361136
11371137 /* 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 ));
11391140 RCU_INIT_POINTER (ifmsh -> csa , NULL );
11401141 if (tmp_csa_settings )
11411142 kfree_rcu (tmp_csa_settings , rcu_head );
@@ -1157,6 +1158,8 @@ int ieee80211_mesh_csa_beacon(struct ieee80211_sub_if_data *sdata,
11571158 struct mesh_csa_settings * tmp_csa_settings ;
11581159 int ret = 0 ;
11591160
1161+ lockdep_assert_held (& sdata -> wdev .mtx );
1162+
11601163 tmp_csa_settings = kmalloc (sizeof (* tmp_csa_settings ),
11611164 GFP_ATOMIC );
11621165 if (!tmp_csa_settings )
You can’t perform that action at this time.
0 commit comments