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)
committerJohannes Berg <johannes.berg@intel.com>
Fri, 14 Apr 2023 11:15:27 +0000 (13:15 +0200)
commitd066a530af8e1833c7ea2cef7784004700c85f79
treef1517a5d6e4b2532cae07fbcc64b5680bb3236be
parent7035b5baae21be4af3d4432bd83e695c8523c2b0
wifi: iwlwifi: mvm: fix ptk_pn memory leak

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>
drivers/net/wireless/intel/iwlwifi/mvm/mac80211.c