linux/drivers/net/wireless/intel
Johannes Berg 99a75d7500 wifi: iwlwifi: mvm: rfi: fix potential response leaks
[ Upstream commit 06a093807e ]

If the rx payload length check fails, or if kmemdup() fails,
we still need to free the command response. Fix that.

Fixes: 21254908cb ("iwlwifi: mvm: add RFI-M support")
Co-authored-by: Anjaneyulu <pagadala.yesu.anjaneyulu@intel.com>
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Signed-off-by: Miri Korenblit <miriam.rachel.korenblit@intel.com>
Link: https://msgid.link/20240319100755.db2fa0196aa7.I116293b132502ac68a65527330fa37799694b79c@changeid
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
History 2024-04-10 16:28:21 +02:00
..
ipw2x00 wifi: ipw2200: fix memory leak in ipw_wdev_init() 2023-03-10 09:32:49 +01:00
iwlegacy wifi: iwl4965: Add missing check for create_singlethread_workqueue() 2023-03-10 09:33:03 +01:00
iwlwifi wifi: iwlwifi: mvm: rfi: fix potential response leaks 2024-04-10 16:28:21 +02:00
Kconfig treewide: replace '---help---' in Kconfig files with 'help' 2020-06-14 01:57:21 +09:00
Makefile iwlwifi: fix build error for IWLMEI 2022-03-02 22:36:49 +01:00