diff options
Diffstat (limited to 'net/mac80211/cfg.c')
-rw-r--r-- | net/mac80211/cfg.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net/mac80211/cfg.c b/net/mac80211/cfg.c index 6b183a3526b0..fbd462c78e18 100644 --- a/net/mac80211/cfg.c +++ b/net/mac80211/cfg.c | |||
@@ -672,7 +672,7 @@ static int ieee80211_add_station(struct wiphy *wiphy, struct net_device *dev, | |||
672 | 672 | ||
673 | err = sta_info_insert(sta); | 673 | err = sta_info_insert(sta); |
674 | if (err) { | 674 | if (err) { |
675 | sta_info_destroy(sta); | 675 | /* STA has been freed */ |
676 | rcu_read_unlock(); | 676 | rcu_read_unlock(); |
677 | return err; | 677 | return err; |
678 | } | 678 | } |