summaryrefslogtreecommitdiffstats
path: root/net/nfc/nci/Makefile
diff options
context:
space:
mode:
authorArend van Spriel <arend.vanspriel@broadcom.com>2022-10-20 13:40:40 +0200
committerJohannes Berg <johannes.berg@intel.com>2022-10-21 12:35:57 +0200
commit57b962e627ec0ae53d4d16d7bd1033e27e67677a (patch)
treed0ea4f6ea13b07adb51ee51419bef9420465afdc /net/nfc/nci/Makefile
parent50b2e8711462409cd368c41067405aa446dfa2af (diff)
downloadlinux-stable-57b962e627ec0ae53d4d16d7bd1033e27e67677a.tar.gz
linux-stable-57b962e627ec0ae53d4d16d7bd1033e27e67677a.tar.bz2
linux-stable-57b962e627ec0ae53d4d16d7bd1033e27e67677a.zip
wifi: cfg80211: fix memory leak in query_regdb_file()
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: 007f6c5e6eb4 ("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>
Diffstat (limited to 'net/nfc/nci/Makefile')
0 files changed, 0 insertions, 0 deletions