mac80211: warn if unhashing station fails
[platform/adaptation/renesas_rcar/renesas_kernel.git] / net / mac80211 / sta_info.c
index 8ed97f7..8ae37f6 100644 (file)
@@ -868,7 +868,7 @@ int __must_check __sta_info_destroy(struct sta_info *sta)
        ieee80211_sta_tear_down_BA_sessions(sta, AGG_STOP_DESTROY_STA);
 
        ret = sta_info_hash_del(local, sta);
-       if (ret)
+       if (WARN_ON(ret))
                return ret;
 
        list_del_rcu(&sta->list);