mac80211: move synchronize_net() before sta key removal
[deliverable/linux.git] / net / mac80211 / sta_info.c
index 7241f3229a275333954c3ec6af9e8a181bd5bdfd..08e50760e092911f1933b92d0bac27f0a3efd410 100644 (file)
@@ -831,7 +831,8 @@ int __must_check __sta_info_destroy(struct sta_info *sta)
            rcu_access_pointer(sdata->u.vlan.sta) == sta)
                RCU_INIT_POINTER(sdata->u.vlan.sta, NULL);
 
-       /* this always calls synchronize_net() */
+       synchronize_net();
+       /* now keys can no longer be reached */
        ieee80211_free_sta_keys(local, sta);
 
        sta->dead = true;
This page took 0.028219 seconds and 5 git commands to generate.