All of
 help / color / mirror / Atom feed
From: Kalle Valo <>
To: Lorenzo Bianconi <>
Subject: Re: [PATCH wireless] wifi: mt76: do not run mt76_unregister_device() on unregistered hw
Date: Fri, 24 Feb 2023 18:42:16 +0200	[thread overview]
Message-ID: <> (raw)
In-Reply-To: <> (Lorenzo Bianconi's message of "Thu, 23 Feb 2023 00:10:25 +0100")

Lorenzo Bianconi <> writes:

> Trying to probe a mt7921e pci card without firmware results in a
> successful probe where ieee80211_register_hw hasn't been called. When
> removing the driver, ieee802111_unregister_hw is called unconditionally
> leading to a kernel NULL pointer dereference.
> Fix the issue running mt76_unregister_device routine just for registered
> hw.
> Link:
> Link:
> Reported-by: Stuart Hayhurst <>
> Fixes: 1c71e03afe4b ("mt76: mt7921: move mt7921_init_hw in a dedicated work")
> Tested-by: Helmut Grohne <>
> Signed-off-by: Lorenzo Bianconi <>

I assigned this to myself on patchwork and will queue for v6.3.


  parent reply	other threads:[~2023-02-24 16:42 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-02-22 23:10 [PATCH wireless] wifi: mt76: do not run mt76_unregister_device() on unregistered hw Lorenzo Bianconi
2023-02-23  8:46 ` Lorenzo Bianconi
2023-02-24 16:42 ` Kalle Valo [this message]
2023-03-13 13:30 ` Kalle Valo

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:

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

  git send-email \ \ \ \ \ \ \ \

* 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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.