public inbox for stable@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH v3 wireless] mac80211: fix NULL pointer dereference in monitor mode
@ 2026-02-05 17:23 Dhyan K Prajapati
  2026-02-05 17:34 ` Greg KH
  2026-02-05 17:34 ` Greg KH
  0 siblings, 2 replies; 3+ messages in thread
From: Dhyan K Prajapati @ 2026-02-05 17:23 UTC (permalink / raw)
  To: Johannes Berg; +Cc: linux-wireless, netdev, stable, dhyaan19022009-hue

From: dhyaan19022009-hue <dhyaan19022009@gmail.com>

Signed-off-by: dhyaan19022009-hue <dhyaan19022009@gmail.com>
---
 net/mac80211/main.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/net/mac80211/main.c b/net/mac80211/main.c
index b05e313c7..190222c26 100644
--- a/net/mac80211/main.c
+++ b/net/mac80211/main.c
@@ -416,6 +416,8 @@ void ieee80211_link_info_change_notify(struct ieee80211_sub_if_data *sdata,
 	case NL80211_IFTYPE_MONITOR:
 		if (!ieee80211_hw_check(&local->hw, WANT_MONITOR_VIF))
 			return;
+		if (!link->conf->bss)
+			return;
 		break;
 	default:
 		break;
-- 
2.43.0


^ permalink raw reply related	[flat|nested] 3+ messages in thread

* Re: [PATCH v3 wireless] mac80211: fix NULL pointer dereference in monitor mode
  2026-02-05 17:23 [PATCH v3 wireless] mac80211: fix NULL pointer dereference in monitor mode Dhyan K Prajapati
@ 2026-02-05 17:34 ` Greg KH
  2026-02-05 17:34 ` Greg KH
  1 sibling, 0 replies; 3+ messages in thread
From: Greg KH @ 2026-02-05 17:34 UTC (permalink / raw)
  To: Dhyan K Prajapati
  Cc: Johannes Berg, linux-wireless, netdev, stable, dhyaan19022009-hue

On Thu, Feb 05, 2026 at 10:53:12PM +0530, Dhyan K Prajapati wrote:
> From: dhyaan19022009-hue <dhyaan19022009@gmail.com>
> 
> Signed-off-by: dhyaan19022009-hue <dhyaan19022009@gmail.com>
> ---
>  net/mac80211/main.c | 2 ++
>  1 file changed, 2 insertions(+)
> 
> diff --git a/net/mac80211/main.c b/net/mac80211/main.c
> index b05e313c7..190222c26 100644
> --- a/net/mac80211/main.c
> +++ b/net/mac80211/main.c
> @@ -416,6 +416,8 @@ void ieee80211_link_info_change_notify(struct ieee80211_sub_if_data *sdata,
>  	case NL80211_IFTYPE_MONITOR:
>  		if (!ieee80211_hw_check(&local->hw, WANT_MONITOR_VIF))
>  			return;
> +		if (!link->conf->bss)
> +			return;
>  		break;
>  	default:
>  		break;
> -- 
> 2.43.0
> 
> 

<formletter>

This is not the correct way to submit patches for inclusion in the
stable kernel tree.  Please read:
    https://www.kernel.org/doc/html/latest/process/stable-kernel-rules.html
for how to do this properly.

</formletter>

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [PATCH v3 wireless] mac80211: fix NULL pointer dereference in monitor mode
  2026-02-05 17:23 [PATCH v3 wireless] mac80211: fix NULL pointer dereference in monitor mode Dhyan K Prajapati
  2026-02-05 17:34 ` Greg KH
@ 2026-02-05 17:34 ` Greg KH
  1 sibling, 0 replies; 3+ messages in thread
From: Greg KH @ 2026-02-05 17:34 UTC (permalink / raw)
  To: Dhyan K Prajapati
  Cc: Johannes Berg, linux-wireless, netdev, stable, dhyaan19022009-hue

On Thu, Feb 05, 2026 at 10:53:12PM +0530, Dhyan K Prajapati wrote:
> From: dhyaan19022009-hue <dhyaan19022009@gmail.com>
> 
> Signed-off-by: dhyaan19022009-hue <dhyaan19022009@gmail.com>
> ---
>  net/mac80211/main.c | 2 ++
>  1 file changed, 2 insertions(+)
> 
> diff --git a/net/mac80211/main.c b/net/mac80211/main.c
> index b05e313c7..190222c26 100644
> --- a/net/mac80211/main.c
> +++ b/net/mac80211/main.c
> @@ -416,6 +416,8 @@ void ieee80211_link_info_change_notify(struct ieee80211_sub_if_data *sdata,
>  	case NL80211_IFTYPE_MONITOR:
>  		if (!ieee80211_hw_check(&local->hw, WANT_MONITOR_VIF))
>  			return;
> +		if (!link->conf->bss)
> +			return;
>  		break;
>  	default:
>  		break;
> -- 
> 2.43.0
> 
> 


Hi,

This is the friendly patch-bot of Greg Kroah-Hartman.  You have sent him
a patch that has triggered this response.  He used to manually respond
to these common problems, but in order to save his sanity (he kept
writing the same thing over and over, yet to different people), I was
created.  Hopefully you will not take offence and will fix the problem
in your patch and resubmit it so that it can be accepted into the Linux
kernel tree.

You are receiving this message because of the following common error(s)
as indicated below:

- You did not specify a description of why the patch is needed, or
  possibly, any description at all, in the email body.  Please read the
  section entitled "The canonical patch format" in the kernel file,
  Documentation/process/submitting-patches.rst for what is needed in
  order to properly describe the change.

- You did not write a descriptive Subject: for the patch, allowing Greg,
  and everyone else, to know what this patch is all about.  Please read
  the section entitled "The canonical patch format" in the kernel file,
  Documentation/process/submitting-patches.rst for what a proper
  Subject: line should look like.

- It looks like you did not use your "real" name for the patch on either
  the Signed-off-by: line, or the From: line (both of which have to
  match).  Please read the kernel file,
  Documentation/process/submitting-patches.rst for how to do this
  correctly.

If you wish to discuss this problem further, or you have questions about
how to resolve this issue, please feel free to respond to this email and
Greg will reply once he has dug out from the pending patches received
from other developers.

thanks,

greg k-h's patch email bot

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2026-02-05 17:34 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-02-05 17:23 [PATCH v3 wireless] mac80211: fix NULL pointer dereference in monitor mode Dhyan K Prajapati
2026-02-05 17:34 ` Greg KH
2026-02-05 17:34 ` Greg KH

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox