iwlwifi: clear trans->op_mode pointer when it is leaving
authorEmmanuel Grumbach <emmanuel.grumbach@intel.com>
Tue, 27 Nov 2012 19:36:54 +0000 (21:36 +0200)
committerJohannes Berg <johannes.berg@intel.com>
Wed, 28 Nov 2012 14:35:04 +0000 (15:35 +0100)
commitb4991f3f7bdc2402a3d7d841eb4376bda4f7a56b
treecc311c2240ac27055e4bacd76d3705e2a9aa7376
parent52e2a99eee77cc4a47e183eb7f5102301a31e282
iwlwifi: clear trans->op_mode pointer when it is leaving

Since the op_mode is leaving, the transport should set
its pointer to it to NULL to not point to freed memory.

Signed-off-by: Emmanuel Grumbach <emmanuel.grumbach@intel.com>
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
drivers/net/wireless/iwlwifi/iwl-trans.h