diff options
author | Johannes Berg <johannes.berg@intel.com> | 2013-12-04 14:25:27 -0500 |
---|---|---|
committer | Johannes Berg <johannes.berg@intel.com> | 2013-12-05 08:57:16 -0500 |
commit | b01711be4bff93d16ac921350d2ada1a60ecc160 (patch) | |
tree | 629b26899a170257a2154695b5487fedec44d058 /net/mac80211/sta_info.c | |
parent | 9e890a1f21c626cec3a8955814d36ea1879bdde6 (diff) |
mac80211: warn if unhashing station fails
This shouldn't be happening, so warn if it does, since we'd
then leak a station entry.
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Diffstat (limited to 'net/mac80211/sta_info.c')
-rw-r--r-- | net/mac80211/sta_info.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net/mac80211/sta_info.c b/net/mac80211/sta_info.c index 8ed97f76c3cf..8ae37f60d60c 100644 --- a/net/mac80211/sta_info.c +++ b/net/mac80211/sta_info.c | |||
@@ -868,7 +868,7 @@ int __must_check __sta_info_destroy(struct sta_info *sta) | |||
868 | ieee80211_sta_tear_down_BA_sessions(sta, AGG_STOP_DESTROY_STA); | 868 | ieee80211_sta_tear_down_BA_sessions(sta, AGG_STOP_DESTROY_STA); |
869 | 869 | ||
870 | ret = sta_info_hash_del(local, sta); | 870 | ret = sta_info_hash_del(local, sta); |
871 | if (ret) | 871 | if (WARN_ON(ret)) |
872 | return ret; | 872 | return ret; |
873 | 873 | ||
874 | list_del_rcu(&sta->list); | 874 | list_del_rcu(&sta->list); |