Potential NULL pointer deference in iwlwifi: mvm

From: Yizhuo Zhai
Date: Thu Oct 10 2019 - 01:03:22 EST


Hi All:

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

The function iwl_mvm_vif_from_mac80211() could return NULL,
but some callers in this file does not check the return value while
directly dereference it, which seems potentially unsafe.
Such callers include iwl_mvm_update_d0i3_power_mode(),
iwl_mvm_power_configure_uapsd(),
iwl_mvm_power_allow_uapsd(), etc.



--
Kind Regards,

Yizhuo Zhai

Computer Science, Graduate Student
University of California, Riverside