]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit849f222a762bcf31fb9f1ce667e8ab649b68531a
tree5ab920bf96df29adeefd5ea3b380b593aba54aa5
parenta61091f4489f0df6f19a71b57fe54bd160b2fcd3
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