summaryrefslogtreecommitdiff
path: root/net/mac80211/main.c
diff options
context:
space:
mode:
authorJohannes Berg <johannes.berg@intel.com>2022-06-27 12:28:31 +0200
committerJohannes Berg <johannes.berg@intel.com>2022-07-01 11:13:35 +0200
commit591e73ee3f737098723406bcfae43673add31881 (patch)
treedee4a94694ad1fe6ab1398bbd4e901651a40d2ac /net/mac80211/main.c
parentc77bfab9237109d93162d9fce0d69f97aed5dc40 (diff)
wifi: mac80211: properly skip link info driver update
If the interface isn't (yet) added to the driver, skip the link info update. This was previously done for the BSS info changes, but I forgot to copy the same check here. Fixes: 7b7090b4c6a9 ("wifi: mac80211: split bss_info_changed method") Reported-by: syzbot+bce2ca140cc00578ed07@syzkaller.appspotmail.com Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Diffstat (limited to 'net/mac80211/main.c')
-rw-r--r--net/mac80211/main.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/net/mac80211/main.c b/net/mac80211/main.c
index 929bbdf55213..c34f06039dda 100644
--- a/net/mac80211/main.c
+++ b/net/mac80211/main.c
@@ -281,6 +281,9 @@ void ieee80211_link_info_change_notify(struct ieee80211_sub_if_data *sdata,
if (!changed || sdata->vif.type == NL80211_IFTYPE_AP_VLAN)
return;
+ if (!check_sdata_in_driver(sdata))
+ return;
+
drv_link_info_changed(local, sdata, link_id, changed);
}