]> git.baikalelectronics.ru Git - kernel.git/commit
iwlwifi: pcie: free context info in case of failures
authorJohannes Berg <johannes.berg@intel.com>
Wed, 19 Apr 2017 08:30:47 +0000 (10:30 +0200)
committerLuca Coelho <luciano.coelho@intel.com>
Thu, 20 Apr 2017 04:28:03 +0000 (07:28 +0300)
commit7cc3861a203611c7c7f870efc9d290aebea378a8
treec15b167d14eac331b0ac68ad3f335d92a4032a6c
parent18889c78c7b3242d7e51b632fe154657e84291f8
iwlwifi: pcie: free context info in case of failures

If iwl_pcie_ctxt_info_init_fw_sec() fails, the previous allocated DMA
memory needs to be freed (it even goes out of scope immediately.)
Do that to prevent the leak.

Fixes: 3a0286bcf1df ("iwlwifi: pcie: add context information support")
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Signed-off-by: Luca Coelho <luciano.coelho@intel.com>
drivers/net/wireless/intel/iwlwifi/pcie/ctxt-info.c