OrangePi_CM5/net/wireless
Arend van Spriel e1e1218032 wifi: cfg80211: fix memory leak in query_regdb_file()
[ Upstream commit 57b962e627ec0ae53d4d16d7bd1033e27e67677a ]

In the function query_regdb_file() the alpha2 parameter is duplicated
using kmemdup() and subsequently freed in regdb_fw_cb(). However,
request_firmware_nowait() can fail without calling regdb_fw_cb() and
thus leak memory.

Fixes: 007f6c5e6e ("cfg80211: support loading regulatory database as firmware file")
Signed-off-by: Arend van Spriel <arend.vanspriel@broadcom.com>
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2022-11-16 09:57:08 +01:00
..
certs
…
.gitignore
…
Kconfig
…
Makefile
…
ap.c
…
chan.c
…
core.c cfg80211: set custom regdomain after wiphy registration 2022-06-06 08:42:41 +02:00
core.h
…
debugfs.c wifi: cfg80211: debugfs: fix return type in ht40allow_map_read() 2022-09-08 11:11:36 +02:00
debugfs.h
…
ethtool.c
…
ibss.c
…
lib80211.c
…
lib80211_crypt_ccmp.c
…
lib80211_crypt_tkip.c
…
lib80211_crypt_wep.c
…
mesh.c
…
mlme.c
…
nl80211.c nl80211: show SSID for P2P_GO interfaces 2022-06-09 10:21:01 +02:00
nl80211.h
…
ocb.c
…
of.c
…
pmsr.c
…
radiotap.c
…
rdev-ops.h
…
reg.c wifi: cfg80211: fix memory leak in query_regdb_file() 2022-11-16 09:57:08 +01:00
reg.h
…
scan.c wifi: cfg80211: silence a sparse RCU warning 2022-11-16 09:57:08 +01:00
sme.c
…
sysfs.c
…
sysfs.h
…
trace.c
…
trace.h
…
util.c
…
wext-compat.c
…
wext-compat.h
…
wext-core.c
…
wext-priv.c
…
wext-proc.c
…
wext-sme.c
…
wext-spy.c
…