]> git.baikalelectronics.ru Git - kernel.git/commit
iwlwifi: mvm: bail out if CTDP start operation fails
authorLuca Coelho <luciano.coelho@intel.com>
Wed, 14 Sep 2016 08:54:36 +0000 (11:54 +0300)
committerLuca Coelho <luciano.coelho@intel.com>
Thu, 22 Sep 2016 20:25:36 +0000 (23:25 +0300)
commitbd2b4e5679ec2ac3ce190cb1bd8ba327aa10dd1e
tree8a3c6b2afc36d17a74450722f3fb9cc75c00e363
parentbc9998b3f30014027f24a7023a5e3c4500ba1515
iwlwifi: mvm: bail out if CTDP start operation fails

We were assigning the return value of iwl_mvm_ctdp_command() to a
variable, but never checking it.  If this command fails, we should not
allow the interface up process to proceed, since it is potentially
dangerous to ignore thermal management requirements.

Fixes: commit 636788d3faa0 ("iwlwifi: mvm: add registration to cooling device")
Signed-off-by: Luca Coelho <luciano.coelho@intel.com>
drivers/net/wireless/intel/iwlwifi/mvm/fw.c