[PATCH 0/2] net/xsc: fix two issues reported by GCC analyzer
Renyong Wan
wanry at yunsilicon.com
Fri Nov 13 04:10:25 CET 2026
>From 0fe3f49419330852df7d2a82fcf179fa6f80a9a0 Mon Sep 17 00:00:00 2001
From: Renyong Wan <wanry at yunsilicon.com>
Date: Fri, 13 Nov 2026 10:44:51 +0800
Subject: [PATCH 0/2] net/xsc: fix two issues reported by GCC analyzer
Two fixes for net/xsc coming out of the GCC -fanalyzer report.
45: when rte_malloc_virt2iova() fails, the jumbo buffer is leaked and
RTE_BAD_IOVA ends up in the WQE.
46: xsc_dev_init() leaks a structure on the dev_ops failure path, and
the Tx queue allocation is dereferenced without a NULL check.
The two patches are independent.
Renyong Wan (2):
net/xsc: fix jumbo buffer on IOVA conversion failure
net/xsc: fix leak and missing NULL check
drivers/net/xsc/xsc_dev.c | 1 +
drivers/net/xsc/xsc_ethdev.c | 6 ++++++
drivers/net/xsc/xsc_rx.c | 5 ++++-
3 files changed, 11 insertions(+), 1 deletion(-)
More information about the dev
mailing list