]> git.baikalelectronics.ru Git - kernel.git/commit
iwlwifi: mvm: sanity check context in iwl_mvm_phy_ctxt_unref()
authorJohannes Berg <johannes.berg@intel.com>
Wed, 8 May 2013 13:55:31 +0000 (15:55 +0200)
committerJohannes Berg <johannes.berg@intel.com>
Tue, 14 May 2013 08:42:55 +0000 (10:42 +0200)
commit1db459c77e3bf41e54ac6e04c9b668aaf7bc99b4
tree0e400b7a4006871f551084b9c6decc50b555dc26
parentc99a71bfe0e2d9dc40b01c579552ecf9ff93d452
iwlwifi: mvm: sanity check context in iwl_mvm_phy_ctxt_unref()

In some botched (!) restart scenarios we seem to get here with
a NULL PHY context, so warn and exit instead of crashing.

Reported-by: Omer Kremer <omerx.kremer@intel.com>
Reviewed-by: Ilan Peer <ilan.peer@intel.com>
Reviewed-by: Emmanuel Grumbach <emmanuel.grumbach@intel.com>
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
drivers/net/wireless/iwlwifi/mvm/phy-ctxt.c