All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Luka Gejak" <luka.gejak@linux.dev>
To: "Wanhui Fu" <fuwh1120@163.com>,
	pkshih@realtek.com, yhchuang@realtek.com, sgruszka@redhat.com,
	kvalo@kernel.org, briannorris@chromium.org
Cc: linux-wireless@vger.kernel.org, "Wanhui Fu" <fuwh1120@163.com>
Subject: Re: [PATCH] wifi: rtw88: Free the H2C skb if PCI TX fails
Date: Fri, 04 Dec 2026 13:23:18 +0000	[thread overview]
Message-ID: <ee8f7e8668ebba29d5ba6d7800da44648e58b796@linux.dev> (raw)
In-Reply-To: <20261204094437.1656649-1-fuwh1120@163.com>

Hi Wanhui,

patches for rtw next should use [PATCH rtw-next] instead of plain [PATCH].

December 4, 2026 at 10:44 AM, "Wanhui Fu" <fuwh1120@163.com> wrote:
> 
> rtw_tx_write_data_h2c_get() allocates an skb before calling
> rtw_pci_tx_write_data(). If the ring is full or the mapping
> fails, rtw_pci_tx_write_data() returns without queuing the
> skb, causing a memory leak.
> 
> Free the skb if rtw_pci_tx_write_data() fails.
> 
> Found it by self-developed static analysis tool and compile-
> test passed.
> 
> Fixes: e3037485c68e ("rtw88: new Realtek 802.11ac driver")

This should cc stable in my opinion.

> Signed-off-by: Wanhui Fu <fuwh1120@163.com>
> ---

Either way it looks good to me,

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

Best regards,
Luka Gejak

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

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-12-04  9:44 [PATCH] wifi: rtw88: Free the H2C skb if PCI TX fails Wanhui Fu
2026-12-04 13:23 ` 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=ee8f7e8668ebba29d5ba6d7800da44648e58b796@linux.dev \
    --to=luka.gejak@linux.dev \
    --cc=briannorris@chromium.org \
    --cc=fuwh1120@163.com \
    --cc=kvalo@kernel.org \
    --cc=linux-wireless@vger.kernel.org \
    --cc=pkshih@realtek.com \
    --cc=sgruszka@redhat.com \
    --cc=yhchuang@realtek.com \
    /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 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.