android_kernel_motorola_sm6375/net/wireless
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Arend van Spriel 0ede1a9882 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:42:04 +01:00
..
certs
.gitignore
ap.c
chan.c
core.c cfg80211: set custom regdomain after wiphy registration 2022-06-06 08:33:50 +02:00
core.h nl80211: validate key indexes for cfg80211_registered_device 2021-06-10 13:37:02 +02:00
debugfs.c wifi: cfg80211: debugfs: fix return type in ht40allow_map_read() 2022-09-15 12:04:50 +02:00
debugfs.h
ethtool.c
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-23 14:41:29 +02:00
mesh.c
mlme.c
nl80211.c nl80211: show SSID for P2P_GO interfaces 2022-06-14 18:11:32 +02:00
nl80211.h
ocb.c
of.c
pmsr.c cfg80211: avoid double free of PMSR request 2021-06-23 14:41:30 +02:00
radiotap.c
rdev-ops.h
reg.c wifi: cfg80211: fix memory leak in query_regdb_file() 2022-11-25 17:42:04 +01:00
reg.h
scan.c wifi: cfg80211: silence a sparse RCU warning 2022-11-25 17:42:04 +01:00
sme.c
sysfs.c
sysfs.h
trace.c
trace.h
util.c cfg80211: call cfg80211_stop_ap when switch from P2P_GO type 2021-11-26 10:47:22 +01:00
wext-compat.c
wext-compat.h
wext-core.c
wext-priv.c
wext-proc.c
wext-sme.c
wext-spy.c wireless: wext-spy: Fix out-of-bounds warning 2021-07-19 08:53:12 +02:00