]> git.baikalelectronics.ru Git - kernel.git/commit
iwlwifi: mvm: avoid panics with thermal device usage
authorEmmanuel Grumbach <emmanuel.grumbach@intel.com>
Sun, 28 Feb 2016 08:15:08 +0000 (10:15 +0200)
committerEmmanuel Grumbach <emmanuel.grumbach@intel.com>
Sun, 6 Mar 2016 20:01:32 +0000 (22:01 +0200)
commita51c68f50cc379827c185973f656b4a0f3d28b1c
tree1a52a183c41716c38b87ec89d5575223f92f45f3
parent1edbae558d00fcca43fe99e3567cb49e820bb96f
iwlwifi: mvm: avoid panics with thermal device usage

Thermal zone device registration can fail, and in this case
we don't want to remove WiFi functionality. This is why the
thermal zone registration function is void, and the flows
continue even if the thermal zone device registration failed.
Same applies for the cooling device.

This means that we at least need to remember that the thermal
zone device didn't register properly and take the minimal
precautions to avoid panic'ing when we access it.

This was missing.

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