]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
wifi: nl80211: free RNR data on MBSSID mismatch
authorZhao Li <enderaoelyther@gmail.com>
Wed, 10 Jun 2026 11:22:09 +0000 (19:22 +0800)
committerJohannes Berg <johannes.berg@intel.com>
Mon, 6 Jul 2026 12:11:09 +0000 (14:11 +0200)
commit07a95ec2b54774201fdf4ef7ffb0ca2ab19ed29c
tree7b27fb51901207aa4efffb08955ec13b3e1de6ca
parent8ecdeb8b8a33b22c597299043c0dcfce50beb9ea
wifi: nl80211: free RNR data on MBSSID mismatch

nl80211_parse_beacon() rejects EMA RNR data when there are fewer RNR
entries than MBSSID entries.

The rejected RNR allocation has not been attached to the beacon data yet,
so free it before returning the error.

Fixes: dbbb27e183b1 ("cfg80211: support RNR for EMA AP")
Signed-off-by: Zhao Li <enderaoelyther@gmail.com>
Link: https://patch.msgid.link/20260610112208.1308-2-enderaoelyther@gmail.com
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
net/wireless/nl80211.c