android_kernel_motorola_sm6225/net/wireless
Arend van Spriel 2194463967 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-25 17:40:16 +01:00
..
certs
.gitignore
ap.c cfg80211: call disconnect_wk when AP stops 2019-12-01 09:17:34 +01:00
chan.c
core.c cfg80211: set custom regdomain after wiphy registration 2022-06-06 08:24:20 +02:00
core.h nl80211: validate key indexes for cfg80211_registered_device 2021-06-10 13:24:04 +02:00
debugfs.c wifi: cfg80211: debugfs: fix return type in ht40allow_map_read() 2022-09-15 12:17:02 +02:00
debugfs.h
ethtool.c cfg80211: check wiphy driver existence for drvinfo report 2020-03-05 16:42:13 +01:00
ibss.c
Kconfig
lib80211.c
lib80211_crypt_ccmp.c
lib80211_crypt_tkip.c
lib80211_crypt_wep.c
Makefile cfg80211: make certificate generation more robust 2021-06-30 08:48:25 -04:00
mesh.c
mlme.c
nl80211.c nl80211: show SSID for P2P_GO interfaces 2022-06-14 16:59:19 +02:00
nl80211.h
ocb.c
of.c
radiotap.c
rdev-ops.h cfg80211: Fix radar event during another phy CAC 2020-02-05 14:43:46 +00:00
reg.c wifi: cfg80211: fix memory leak in query_regdb_file() 2022-11-25 17:40:16 +01:00
reg.h
scan.c cfg80211: Fix possible memory leak in function cfg80211_bss_update 2021-08-04 12:23:45 +02:00
sme.c cfg80211: remove WARN_ON() in cfg80211_sme_connect 2021-04-14 08:22:36 +02:00
sysfs.c
sysfs.h
trace.c
trace.h cfg80211: Fix radar event during another phy CAC 2020-02-05 14:43:46 +00:00
util.c cfg80211: call cfg80211_stop_ap when switch from P2P_GO type 2021-11-26 11:36:24 +01:00
wext-compat.c cfg80211: initialize on-stack chandefs 2019-10-11 18:21:09 +02:00
wext-compat.h
wext-core.c wext: fix NULL-ptr-dereference with cfg80211's lack of commit() 2021-02-03 23:23:24 +01:00
wext-priv.c
wext-proc.c
wext-sme.c cfg80211: wext: avoid copying malformed SSIDs 2019-10-29 09:19:52 +01:00
wext-spy.c wireless: wext-spy: Fix out-of-bounds warning 2021-07-20 16:16:02 +02:00