iwlwifi: mvm: fix unregistration of thermal in some error flows
authorChaya Rachel Ivgi <chaya.rachel.ivgi@intel.com>
Thu, 3 Mar 2016 11:31:39 +0000 (13:31 +0200)
committerEmmanuel Grumbach <emmanuel.grumbach@intel.com>
Mon, 7 Mar 2016 11:34:15 +0000 (13:34 +0200)
commit04ddc2aacc1c52793c1e30db5073bef6fbc08942
tree5ab920bf96df29adeefd5ea3b380b593aba54aa5
parentafd5b1704cb15eabc4358b7b0dd7f33099408eaa
iwlwifi: mvm: fix unregistration of thermal in some error flows

The call to iwl_mvm_thermal_initialize() was too early in the
function.
Unregister will be performed when goto out_unregister is called,
but as the code was - out_free may be called and leave without
unregistering from thermal.

Signed-off-by: Chaya Rachel Ivgi <chaya.rachel.ivgi@intel.com>
Signed-off-by: Emmanuel Grumbach <emmanuel.grumbach@intel.com>
drivers/net/wireless/intel/iwlwifi/mvm/ops.c