diff options
Diffstat (limited to 'net/mac80211/sta_info.c')
-rw-r--r-- | net/mac80211/sta_info.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/net/mac80211/sta_info.c b/net/mac80211/sta_info.c index 7241f3229a27..08e50760e092 100644 --- a/net/mac80211/sta_info.c +++ b/net/mac80211/sta_info.c | |||
@@ -831,7 +831,8 @@ int __must_check __sta_info_destroy(struct sta_info *sta) | |||
831 | rcu_access_pointer(sdata->u.vlan.sta) == sta) | 831 | rcu_access_pointer(sdata->u.vlan.sta) == sta) |
832 | RCU_INIT_POINTER(sdata->u.vlan.sta, NULL); | 832 | RCU_INIT_POINTER(sdata->u.vlan.sta, NULL); |
833 | 833 | ||
834 | /* this always calls synchronize_net() */ | 834 | synchronize_net(); |
835 | /* now keys can no longer be reached */ | ||
835 | ieee80211_free_sta_keys(local, sta); | 836 | ieee80211_free_sta_keys(local, sta); |
836 | 837 | ||
837 | sta->dead = true; | 838 | sta->dead = true; |