From: Ping-Ke Shih <pkshih@realtek.com>
To: Wanhui Fu <fuwh1120@163.com>,
"sgruszka@redhat.com" <sgruszka@redhat.com>,
"yhchuang@realtek.com" <yhchuang@realtek.com>,
"briannorris@chromium.org" <briannorris@chromium.org>,
"kvalo@kernel.org" <kvalo@kernel.org>
Cc: "linux-wireless@vger.kernel.org" <linux-wireless@vger.kernel.org>,
"stable@vger.kernel.org" <stable@vger.kernel.org>,
Luka Gejak <luka.gejak@linux.dev>
Subject: RE: [PATCH rtw-next v2] wifi: rtw88: Free the H2C skb if PCI TX fails
Date: Sun, 6 Dec 2026 02:52:42 +0000 [thread overview]
Message-ID: <244bb0ab3a1a47499f0c88d02735978c@realtek.com> (raw)
In-Reply-To: <20261205141310.2678619-1-fuwh1120@163.com>
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")
Should be
Fixes: aaab5d0e6737 ("rtw88: kick off TX packets once for higher efficiency")
No need to resend because of this.
> Cc: stable@vger.kernel.org
> Signed-off-by: Wanhui Fu <fuwh1120@163.com>
> Reviewed-by: Luka Gejak <luka.gejak@linux.dev>
Acked-by: Ping-Ke Shih <pkshih@realtek.com>
prev parent reply other threads:[~2026-12-06 2:53 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-12-05 14:13 [PATCH rtw-next v2] wifi: rtw88: Free the H2C skb if PCI TX fails Wanhui Fu
2026-12-06 2:52 ` Ping-Ke Shih [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=244bb0ab3a1a47499f0c88d02735978c@realtek.com \
--to=pkshih@realtek.com \
--cc=briannorris@chromium.org \
--cc=fuwh1120@163.com \
--cc=kvalo@kernel.org \
--cc=linux-wireless@vger.kernel.org \
--cc=luka.gejak@linux.dev \
--cc=sgruszka@redhat.com \
--cc=stable@vger.kernel.org \
--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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox