]> git.baikalelectronics.ru Git - kernel.git/commit
wifi: iwlwifi: mvm: fix ptk_pn memory leak
authorJohannes Berg <johannes.berg@intel.com>
Fri, 14 Apr 2023 10:12:02 +0000 (13:12 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 24 May 2023 16:32:38 +0000 (17:32 +0100)
commit59980214dcb78f9d591734bb91e072d87a51af7b
treed44c60b626dcdc5a2af782650dabe0e99b367d22
parentd0ad40491b5d9f03af1f66576482be88cc0be3ce
wifi: iwlwifi: mvm: fix ptk_pn memory leak

[ Upstream commit d066a530af8e1833c7ea2cef7784004700c85f79 ]

If adding a key to firmware fails we leak the allocated ptk_pn.
This shouldn't happen in practice, but we should still fix it.

Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Signed-off-by: Gregory Greenman <gregory.greenman@intel.com>
Link: https://lore.kernel.org/r/20230414130637.99446ffd02bc.I82a2ad6ec1395f188e0a1677cc619e3fcb1feac9@changeid
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/net/wireless/intel/iwlwifi/mvm/mac80211.c