[PATCH v2 0/3] net/xsc: fix issues reported by GCC analyzer
Renyong Wan
wanry at yunsilicon.com
Mon Nov 16 07:58:43 CET 2026
v2 addresses the issues raised in the AI review of v1:
- allocate the jumbo buffer once per device, fail the queue setup when
there is no IOVA, and free it on device close
- fix the leak in xsc_dev_init() and the unchecked rte_malloc_socket()
- rename the jumbo buffer fields, they held the opposite of what their
names say
Renyong Wan (3):
net/xsc: fix jumbo buffer allocation and leak
net/xsc: fix leak and missing null check
net/xsc: rename jumbo buffer fields
drivers/net/xsc/xsc_dev.c | 2 ++
drivers/net/xsc/xsc_dev.h | 4 +--
drivers/net/xsc/xsc_ethdev.c | 6 ++++
drivers/net/xsc/xsc_rx.c | 53 ++++++++++++++++++++----------------
4 files changed, 39 insertions(+), 26 deletions(-)
More information about the dev
mailing list