iwlwifi: mvm: check if vif is NULL before using it
authorSharon Dvir <sharon.dvir@intel.com>
Mon, 25 Jul 2016 13:11:05 +0000 (16:11 +0300)
committerLuca Coelho <luciano.coelho@intel.com>
Mon, 29 Aug 2016 19:29:04 +0000 (22:29 +0300)
commitbdc98b13716eafc454457e068d6c8aaffaaa71e4
treeedda423f41f03d9bb84c750d7e8f5471ea8d1ba0
parent360647959323ec066cc55d82133df73e30530824
iwlwifi: mvm: check if vif is NULL before using it

wdev_to_ieee80211_vif() might return NULL.
Check that vif != NULL before dereferencing it.

Signed-off-by: Sharon Dvir <sharon.dvir@intel.com>
Signed-off-by: Luca Coelho <luciano.coelho@intel.com>
drivers/net/wireless/intel/iwlwifi/mvm/mvm.h