Potential NULL pointer deference in iwlwifi

From: Yizhuo Zhai
Date: Mon Oct 07 2019 - 15:14:00 EST


Hi All:

drivers/net/wireless/intel/iwlwifi/mvm/power.c:

Inside function iwl_mvm_power_ps_disabled_iterator(),
iwl_mvm_vif_from_mac80211()
could return NULL,however, the return value of
iwl_mvm_vif_from_mac80211() is not
checked and get
used. This could potentially be unsafe.

--
Kind Regards,

Yizhuo Zhai

Computer Science, Graduate Student
University of California, Riverside