The Linux Kernel Mailing List
 help / color / mirror / Atom feed
From: "Luka Gejak" <luka.gejak@linux.dev>
To: "Shuo Qin" <23159100078@stu.xidian.edu.cn>,
	"Ping-Ke Shih" <pkshih@realtek.com>
Cc: "Bitterblue Smith" <rtl8821cerfe2@gmail.com>,
	linux-wireless@vger.kernel.org, stable@vger.kernel.org,
	linux-kernel@vger.kernel.org, "Bin Yu" <byu@xidian.edu.cn>,
	"Cheng Wen" <wencheng@xidian.edu.cn>,
	"XinCheng Wang" <26031212453@stu.xidian.edu.cn>
Subject: Re: [PATCH] wifi: rtw88: Unregister all hardware state when PCI IRQ setup fails
Date: Sat, 05 Dec 2026 16:13:44 +0000	[thread overview]
Message-ID: <aaaa47bfb02f046665276fb3f803820c5959e39e@linux.dev> (raw)
In-Reply-To: <20261205095454.114293-1-23159100078@stu.xidian.edu.cn>

Hi Shuo,

The prefered prefix for rtw next related patches is [PATCH rtw-next]
instead of plain [PATCH]. I do not think it is worth sending v2 for this,
but keep it in mind for future submissions.

December 5, 2026 at 10:54 AM, "Shuo Qin" <23159100078@stu.xidian.edu.cn> wrote:
> 
> rtw_register_hw() registers the LED class device and creates debugfs
> entries as well as registering the mac80211 hardware. If the following
> IRQ request fails, rtw_pci_probe() only calls ieee80211_unregister_hw()
> before freeing the hardware and its private driver state.
> 
> The LED remains registered with callbacks that access the freed rtw_dev.
> Use rtw_unregister_hw() to undo the complete registration, including the
> LED and debugfs state, before releasing the allocation.
> 
> Fixes: 4b6652bc6d8d ("wifi: rtw88: Add support for LED blinking")
> Cc: stable@vger.kernel.org
> Co-developed-by: Bin Yu <byu@xidian.edu.cn>
> Signed-off-by: Bin Yu <byu@xidian.edu.cn>
> Co-developed-by: Cheng Wen <wencheng@xidian.edu.cn>
> Signed-off-by: Cheng Wen <wencheng@xidian.edu.cn>
> Signed-off-by: Shuo Qin <23159100078@stu.xidian.edu.cn>
> ---

Looks good to me,

Reviewed-by: Luka Gejak <luka.gejak@linux.dev>

Best regards,
Luka Gejak

      reply	other threads:[~2026-12-05 16:13 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-12-05  9:54 [PATCH] wifi: rtw88: Unregister all hardware state when PCI IRQ setup fails Shuo Qin
2026-12-05 16:13 ` Luka Gejak [this message]

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=aaaa47bfb02f046665276fb3f803820c5959e39e@linux.dev \
    --to=luka.gejak@linux.dev \
    --cc=23159100078@stu.xidian.edu.cn \
    --cc=26031212453@stu.xidian.edu.cn \
    --cc=byu@xidian.edu.cn \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-wireless@vger.kernel.org \
    --cc=pkshih@realtek.com \
    --cc=rtl8821cerfe2@gmail.com \
    --cc=stable@vger.kernel.org \
    --cc=wencheng@xidian.edu.cn \
    /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