linux-stable/drivers/net/wireless/intel
Johannes Berg 28db0ae86c 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>
2024-04-10 16:19:35 +02:00
..
ipw2x00 wifi: ipw2200: fix memory leak in ipw_wdev_init() 2023-03-10 09:39:07 +01:00
iwlegacy wireless: Remove redundant 'flush_workqueue()' calls 2024-03-26 18:21:19 -04:00
iwlwifi wifi: iwlwifi: mvm: rfi: fix potential response leaks 2024-04-10 16:19:35 +02:00
Kconfig
Makefile