DPDK-dev Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/2] net/xsc: fix two issues reported by GCC analyzer
@ 2026-11-13  3:10 Renyong Wan
  2026-11-13  3:10 ` [PATCH 1/2] net/xsc: fix jumbo buffer on IOVA conversion failure Renyong Wan
  2026-11-15 21:41 ` [PATCH 0/2] net/xsc: fix two issues reported by GCC analyzer Stephen Hemminger
  0 siblings, 2 replies; 4+ messages in thread
From: Renyong Wan @ 2026-11-13  3:10 UTC (permalink / raw)
  To: dev; +Cc: stephen, nana, qianr, zhangxx, xudw

>From 0fe3f49419330852df7d2a82fcf179fa6f80a9a0 Mon Sep 17 00:00:00 2001
From: Renyong Wan <wanry@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(-)

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2026-11-15 21:41 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-11-13  3:10 [PATCH 0/2] net/xsc: fix two issues reported by GCC analyzer Renyong Wan
2026-11-13  3:10 ` [PATCH 1/2] net/xsc: fix jumbo buffer on IOVA conversion failure Renyong Wan
2026-11-13  3:10   ` [PATCH 2/2] net/xsc: fix leak and missing NULL check Renyong Wan
2026-11-15 21:41 ` [PATCH 0/2] net/xsc: fix two issues reported by GCC analyzer Stephen Hemminger

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox