]> git.baikalelectronics.ru Git - kernel.git/commit
iwlwifi: bail out in case of bad trans state
authorEliad Peller <eliad@wizery.com>
Thu, 17 Dec 2015 11:02:56 +0000 (13:02 +0200)
committerEmmanuel Grumbach <emmanuel.grumbach@intel.com>
Mon, 21 Dec 2015 17:35:41 +0000 (19:35 +0200)
commit4675ef0a83b2934ff8b261a2fb5d2c75e4641f2d
tree3b9560887f07550bcea8aa71a2f514b58611b46e
parentaaab433967cd672a796c2260b4c9cda0b0115570
iwlwifi: bail out in case of bad trans state

In case of bad trans state (i.e. fw is not loaded) bail
out immediately instead of calling the trans, which might
not be fully initialized yet.

Also add WARN_ON_ONCE to help debugging where the errorneous
call is coming from.

Signed-off-by: Eliad Peller <eliadx.peller@intel.com>
Signed-off-by: Emmanuel Grumbach <emmanuel.grumbach@intel.com>
drivers/net/wireless/intel/iwlwifi/iwl-trans.h