Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit b01711be authored by Johannes Berg's avatar Johannes Berg
Browse files

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: default avatarJohannes Berg <johannes.berg@intel.com>
parent 9e890a1f
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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);