wifi: iwlwifi: mvm: Add NULL check before dereferencing the pointer
authorMukesh Sisodiya <mukesh.sisodiya@intel.com>
Wed, 14 Jun 2023 12:50:08 +0000 (15:50 +0300)
committerJohannes Berg <johannes.berg@intel.com>
Mon, 19 Jun 2023 10:05:24 +0000 (12:05 +0200)
commit7dd50fd5478056929a012c6bf8b3c6f87c7e9e87
treed39637f10a30d724918eae8651e4826ac9e276e9
parentedcda51d99a7ae67d1cb4019b2d33d8d5defc6fe
wifi: iwlwifi: mvm: Add NULL check before dereferencing the pointer

While vif pointers are protected by the corresponding "*active"
fields, static checkers can get confused sometimes. Add an explicit
check.

Signed-off-by: Mukesh Sisodiya <mukesh.sisodiya@intel.com>
Signed-off-by: Gregory Greenman <gregory.greenman@intel.com>
Link: https://lore.kernel.org/r/20230614154951.78749ae91fb5.Id3c05d13eeee6638f0930f750e93fb928d5c9dee@changeid
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
drivers/net/wireless/intel/iwlwifi/mvm/power.c