Skip to contentSkip to conversation

iwlwifi: dvm: fix NULL pointer dereference in rxon

PATCH New dhyaan19022009-hue 1 participant 1 message Feb 4 Intel wireless wifi link (iwlwifi)

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 iwlwifi: dvm: fix NULL pointer dereference in rxon

---
 drivers/net/wireless/intel/iwlwifi/dvm/rxon.c | 5 +++++
 1 file changed, 5 insertions(+)
drivers/net/wireless/intel/iwlwifi/dvm/rxon.c +5 -0
index e08e44cae..2d480b1d1 100644
@@ -1392,6 +1392,11 @@ void iwlagn_bss_info_changed(struct ieee80211_hw *hw,
 
 	mutex_lock(&priv->mutex);
 
+
+        if (!bss_conf) {
+		mutex_unlock(&priv->mutex);
+		return;
+	}
 	if (changes & BSS_CHANGED_IDLE && vif->cfg.idle) {
 		/*
 		 * If we go idle, then clearly no "passive-no-rx"
Signature · 1 line
2.43.0