patch 'net/xsc: fix return value in QP modify' has been queued to stable release 25.11.5
Kevin Traynor
ktraynor at redhat.com
Thu Dec 3 14:05:14 CET 2026
Hi,
FYI, your patch has been queued to stable release 25.11.5
Note it hasn't been pushed to http://dpdk.org/browse/dpdk-stable yet.
It will be pushed if I get no objections before 12/08/26. So please
shout if anyone has objections.
Also note that after the patch there's a diff of the upstream commit vs the
patch applied to the branch. This will indicate if there was any rebasing
needed to apply to the stable branch. If there were code changes for rebasing
(ie: not only metadata diffs), please double check that the rebase was
correctly done.
Queued patches are on a temporary branch at:
https://github.com/kevintraynor/dpdk-stable
This queued commit can be viewed at:
https://github.com/kevintraynor/dpdk-stable/commit/1f0ffb0e3f81db51b9e1188c0e696a535f42064b
Thanks.
Kevin
---
>From 1f0ffb0e3f81db51b9e1188c0e696a535f42064b Mon Sep 17 00:00:00 2001
From: Stephen Hemminger <stephen at networkplumber.org>
Date: Mon, 9 Nov 2026 18:18:00 -0800
Subject: [PATCH] net/xsc: fix return value in QP modify
[ upstream commit 5e22ad52c2ba8aa5b1f8b2ab41698b0d9e1eb52c ]
If xsc_vfio_modify_qp_status() is called with num <= 0 the loop
is skipped and an uninitialized value is returned.
All current callers pass num = 1, but gcc 15 at -O1 cannot see
that through the dev_ops indirection and reports:
xsc_vfio.c:491:16: error: 'ret' may be used uninitialized
Initialize ret to 0.
Bugzilla ID: 2099
Fixes: 31e84e37c0b9 ("net/xsc: support VFIO")
Signed-off-by: Stephen Hemminger <stephen at networkplumber.org>
Acked-by: Renyong Wan <wanry at yunsilicon.com>
---
drivers/net/xsc/xsc_vfio.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/net/xsc/xsc_vfio.c b/drivers/net/xsc/xsc_vfio.c
index 0a1e507f7d..bae891cfba 100644
--- a/drivers/net/xsc/xsc_vfio.c
+++ b/drivers/net/xsc/xsc_vfio.c
@@ -450,5 +450,5 @@ static int
xsc_vfio_modify_qp_status(struct xsc_dev *xdev, uint32_t qpn, int num, int opcode)
{
- int i, ret;
+ int i, ret = 0;
int in_len, out_len, cmd_len;
struct xsc_cmd_modify_qp_mbox_in *in;
--
2.56.1
---
Diff of the applied patch vs upstream commit (please double-check if non-empty:
---
--- - 2026-12-03 12:52:50.165162304 +0000
+++ 0388-net-xsc-fix-return-value-in-QP-modify.patch 2026-12-03 12:52:39.298069630 +0000
@@ -1 +1 @@
-From 5e22ad52c2ba8aa5b1f8b2ab41698b0d9e1eb52c Mon Sep 17 00:00:00 2001
+From 1f0ffb0e3f81db51b9e1188c0e696a535f42064b Mon Sep 17 00:00:00 2001
@@ -5,0 +6,2 @@
+[ upstream commit 5e22ad52c2ba8aa5b1f8b2ab41698b0d9e1eb52c ]
+
@@ -17 +18,0 @@
-Cc: stable at dpdk.org
More information about the stable
mailing list