mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/
synced 2026-10-14 05:55:17 +00:00
wifi: mac80211: sta_info: fix link_sta insertion
When inserting a link STA, make sure it doesn't exist first and add lockdep assertions that we cannot modify the hash table without holding the sta_mtx, so this check is really correct. Also return without hashing if the driver failed, and warn if the hashing fails, which shouldn't happen due to the check described above. Fixes:cb71f1d136("wifi: mac80211: add sta link addition/removal") Fixes:ba6ddab94f("wifi: mac80211: maintain link-sta hash table") Signed-off-by: Johannes Berg <johannes.berg@intel.com>
This commit is contained in:
parent
b18d87f5d1
commit
177577dbd2
1 changed files with 14 additions and 3 deletions
Loading…
Add table
Add a link
Reference in a new issue