]> git.baikalelectronics.ru Git - kernel.git/commit
iwlwifi: mvm: fix memory leaks in error paths upon fw error dump
authorEmmanuel Grumbach <emmanuel.grumbach@intel.com>
Tue, 5 Jan 2016 07:35:21 +0000 (09:35 +0200)
committerEmmanuel Grumbach <emmanuel.grumbach@intel.com>
Thu, 7 Jan 2016 17:01:32 +0000 (19:01 +0200)
commit687f5d82b2723f00cfd9835e02f01bdd4a497d34
tree1745d5804dc8d12e4f1967905714b5fadcc07d59
parent45187ec954f938e984b9aa19741bbe9ce61580f6
iwlwifi: mvm: fix memory leaks in error paths upon fw error dump

When iwl_mvm_fw_error_dump fails, it needs to clear the
state in mvm, which includes:
* clear IWL_MVM_STATUS_DUMPING_FW_LOG
* set mvm->fw_dump_trig to NULL
* free the description

While at it, remove a NULL check in
iwl_mvm_free_fw_dump_desc since kfree is NULL safe.

Signed-off-by: Emmanuel Grumbach <emmanuel.grumbach@intel.com>
drivers/net/wireless/intel/iwlwifi/mvm/fw-dbg.c