diff options
Diffstat (limited to 'net/mac80211/cfg.c')
-rw-r--r-- | net/mac80211/cfg.c | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/net/mac80211/cfg.c b/net/mac80211/cfg.c index fbd462c78e18..5f8db5cab65d 100644 --- a/net/mac80211/cfg.c +++ b/net/mac80211/cfg.c | |||
@@ -700,11 +700,7 @@ static int ieee80211_del_station(struct wiphy *wiphy, struct net_device *dev, | |||
700 | return -ENOENT; | 700 | return -ENOENT; |
701 | 701 | ||
702 | sta_info_unlink(&sta); | 702 | sta_info_unlink(&sta); |
703 | 703 | sta_info_destroy(sta); | |
704 | if (sta) { | ||
705 | synchronize_rcu(); | ||
706 | sta_info_destroy(sta); | ||
707 | } | ||
708 | } else | 704 | } else |
709 | sta_info_flush(local, sdata); | 705 | sta_info_flush(local, sdata); |
710 | 706 | ||