public inbox for linux-wireless@vger.kernel.org
 help / color / mirror / Atom feed
From: dhyaan19022009-hue <dhyan19022009@gmail.com>
To: kvalo@kernel.org
Cc: linux-wireless@vger.kernel.org, linux-kernel@vger.kernel.org,
	dhyaan19022009-hue <dhyaan19022009@gmail.com>
Subject: [PATCH] iwlwifi: dvm: fix NULL pointer dereference in rxon
Date: Wed,  4 Feb 2026 17:43:35 +0530	[thread overview]
Message-ID: <20260204121337.4819-2-dhyaan19022009@gmail.com> (raw)
In-Reply-To: <20260204121337.4819-1-dhyaan19022009@gmail.com>

Signed-off-by: dhyaan19022009-hue <dhyaan19022009@gmail.com>
---
 drivers/net/wireless/intel/iwlwifi/dvm/rxon.c | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/drivers/net/wireless/intel/iwlwifi/dvm/rxon.c b/drivers/net/wireless/intel/iwlwifi/dvm/rxon.c
index e08e44cae..2d480b1d1 100644
--- a/drivers/net/wireless/intel/iwlwifi/dvm/rxon.c
+++ b/drivers/net/wireless/intel/iwlwifi/dvm/rxon.c
@@ -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"
-- 
2.43.0


  reply	other threads:[~2026-02-04 12:13 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-02-04 12:13 [PATCH] git commit --amend ``` dhyaan19022009-hue
2026-02-04 12:13 ` dhyaan19022009-hue [this message]
2026-02-04 12:13 ` [PATCH] staging: sm750fb: fix naming styles and const declarations dhyaan19022009-hue
2026-02-04 12:13 ` [PATCH] staging: sm750fb: rename pvMem to pv_mem dhyaan19022009-hue
  -- strict thread matches above, loose matches on Subject: below --
2026-02-04 12:53 [PATCH] iwlwifi: dvm: fix NULL pointer dereference in rxon dhyaan19022009-hue
2026-02-04 13:07 ` Johannes Berg
2026-02-04 12:23 dhyaan19022009-hue
2026-02-04 12:01 dhyaan19022009-hue
2026-02-04 12:25 ` Johannes Berg
2026-02-04 11:38 dhyaan19022009-hue

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20260204121337.4819-2-dhyaan19022009@gmail.com \
    --to=dhyan19022009@gmail.com \
    --cc=dhyaan19022009@gmail.com \
    --cc=kvalo@kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-wireless@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox