From: Thomas Monjalon <thomas@monjalon.net>
To: Stephen Hemminger <stephen@networkplumber.org>,
Renyong Wan <wanry@yunsilicon.com>
Cc: dev@dpdk.org, nana@yunsilicon.com, qianr@yunsilicon.com,
zhangxx@yunsilicon.com, xudw@yunsilicon.com, stable@dpdk.org
Subject: Re: [PATCH v4 2/3] net/xsc: fix leak and missing null check
Date: Fri, 20 Nov 2026 11:36:10 +0100 [thread overview]
Message-ID: <PHN9AhH-TR23VM6YCYNEYw@monjalon.net> (raw)
In-Reply-To: <1794914060.189871@yunsilicon.com>
17/11/2026 12:14, Renyong Wan:
> xsc_dev_init() leaks the structure when the dev_ops lookup fails. Free
> it there: xsc_dev_uninit() cannot be used, as xsc_dev_close()
> dereferences xdev->dev_ops.
>
> xsc_ethdev_tx_queue_setup() misses the NULL check on the
> rte_malloc_socket() result. Return -ENOMEM, as the Rx path does.
I don't see how fixes are related.
It's probably better to have 2 commits.
next prev parent reply other threads:[~2026-11-20 10:36 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-11-17 11:14 [PATCH v4 0/3] net/xsc: fix issues reported by GCC analyzer Renyong Wan
2026-11-17 11:14 ` [PATCH v4 2/3] net/xsc: fix leak and missing null check Renyong Wan
2026-11-20 10:36 ` Thomas Monjalon [this message]
2026-11-21 8:04 ` Renyong Wan
2026-11-22 9:23 ` Thomas Monjalon
2026-11-22 14:20 ` Renyong Wan
2026-11-17 11:14 ` [PATCH v4 3/3] net/xsc: rename jumbo buffer fields Renyong Wan
2026-11-17 11:14 ` [PATCH v4 1/3] net/xsc: fix jumbo buffer allocation and leak Renyong Wan
2026-11-17 17:04 ` [PATCH v4 0/3] net/xsc: fix issues reported by GCC analyzer Stephen Hemminger
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=PHN9AhH-TR23VM6YCYNEYw@monjalon.net \
--to=thomas@monjalon.net \
--cc=dev@dpdk.org \
--cc=nana@yunsilicon.com \
--cc=qianr@yunsilicon.com \
--cc=stable@dpdk.org \
--cc=stephen@networkplumber.org \
--cc=wanry@yunsilicon.com \
--cc=xudw@yunsilicon.com \
--cc=zhangxx@yunsilicon.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