OrangePi_CM5/net/wireless
Johannes Berg 9e7fcf39e2 cfg80211: scan: drop entry from hidden_list on overflow
commit 010bfbe768f7ecc876ffba92db30432de4997e2a upstream.

If we overflow the maximum number of BSS entries and free the
new entry, drop it from any hidden_list that it may have been
added to in the code above or in cfg80211_combine_bsses().

Reported-by: Dan Carpenter <dan.carpenter@oracle.com>
Link: https://lore.kernel.org/r/20210416094212.5de7d1676ad7.Ied283b0bc5f504845e7d6ab90626bdfa68bb3dc0@changeid
Cc: stable@vger.kernel.org
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2021-05-14 09:50:00 +02:00
..
certs
…
.gitignore
…
Kconfig cfg80211: select CONFIG_CRC32 2021-01-19 18:27:28 +01:00
Makefile
…
ap.c
…
chan.c cfg80211: only allow S1G channels on S1G band 2020-10-08 10:41:24 +02:00
core.c cfg80211: initialize wdev data earlier 2020-10-30 10:03:59 +01:00
core.h nl80211: validate key indexes for cfg80211_registered_device 2020-12-26 16:02:45 +01:00
debugfs.c
…
debugfs.h
…
ethtool.c
…
ibss.c
…
lib80211.c lib80211: Remove unused macro DRV_NAME 2020-09-18 11:53:00 +02:00
lib80211_crypt_ccmp.c
…
lib80211_crypt_tkip.c
…
lib80211_crypt_wep.c
…
mesh.c
…
mlme.c cfg80211: handle Association Response from S1G STA 2020-09-28 13:54:03 +02:00
nl80211.c nl80211: fix potential leak of ACL params 2021-04-14 08:42:02 +02:00
nl80211.h
…
ocb.c
…
of.c
…
pmsr.c
…
radiotap.c wireless: radiotap: fix some kernel-doc 2020-09-28 13:53:05 +02:00
rdev-ops.h
…
reg.c cfg80211: regulatory: Fix inconsistent format argument 2020-10-30 10:06:56 +01:00
reg.h
…
scan.c cfg80211: scan: drop entry from hidden_list on overflow 2021-05-14 09:50:00 +02:00
sme.c cfg80211: remove WARN_ON() in cfg80211_sme_connect 2021-04-14 08:42:13 +02:00
sysfs.c
…
sysfs.h
…
trace.c
…
trace.h
…
util.c nl80211: validate key indexes for cfg80211_registered_device 2020-12-26 16:02:45 +01:00
wext-compat.c
…
wext-compat.h
…
wext-core.c wext: fix NULL-ptr-dereference with cfg80211's lack of commit() 2021-02-03 23:28:38 +01:00
wext-priv.c
…
wext-proc.c
…
wext-sme.c
…
wext-spy.c
…