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)
commit9fb7807ce7f21cbab2b13db0183f7f71a75add5e
tree1745d5804dc8d12e4f1967905714b5fadcc07d59
parenta80c7a696610c537fd6e61489be9da0a995fc880
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