Searched hist:"177577 dbd2235a3a65f34a6cd618fe961a4dcaba" (Results 1 – 1 of 1) sorted by relevance
/openbmc/linux/net/mac80211/ |
H A D | sta_info.c | diff 177577dbd2235a3a65f34a6cd618fe961a4dcaba Tue Jul 19 05:08:29 CDT 2022 Johannes Berg <johannes.berg@intel.com> 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: cb71f1d136a6 ("wifi: mac80211: add sta link addition/removal") Fixes: ba6ddab94fc6 ("wifi: mac80211: maintain link-sta hash table") Signed-off-by: Johannes Berg <johannes.berg@intel.com>
|