patch 'net/bnxt/tf_ulp: fix minsize build' has been queued to stable release 25.11.1

Kevin Traynor ktraynor at redhat.com
Thu Feb 26 14:09:18 CET 2026


Hi,

FYI, your patch has been queued to stable release 25.11.1

Note it hasn't been pushed to http://dpdk.org/browse/dpdk-stable yet.
It will be pushed if I get no objections before 03/02/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/118d288e31aa678514b2ee728ae7f34e4f528e7d

Thanks.

Kevin

---
>From 118d288e31aa678514b2ee728ae7f34e4f528e7d Mon Sep 17 00:00:00 2001
From: Thomas Monjalon <thomas at monjalon.net>
Date: Thu, 5 Feb 2026 21:18:09 +0100
Subject: [PATCH] net/bnxt/tf_ulp: fix minsize build

[ upstream commit 374125fc8508efd83cfb6896639cc04e3e5d951c ]

This error is seen in build of type "minsize":

In function 'ulp_blob_append':
	error: 'num' may be used uninitialized [-Werror=maybe-uninitialized]
	drivers/net/bnxt/tf_ulp/ulp_utils.h:1109:13:
	note: in expansion of macro 'unlikely'
 1109 |         if (unlikely((src_offset + src_len) > num))
      |             ^~~~~~~~
drivers/net/bnxt/tf_ulp/ulp_utils.h:1105:18: note: 'num' was declared here
 1105 |         uint16_t num;

Indeed num may be not initialized if ulp_blob_data_get() fails.
It is fixed by checking the return value src_buf.

Fixes: 0c036a1485b9 ("net/bnxt/tf_ulp: optimize with inline and prediction")

Signed-off-by: Thomas Monjalon <thomas at monjalon.net>
---
 drivers/net/bnxt/tf_ulp/ulp_utils.h | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/drivers/net/bnxt/tf_ulp/ulp_utils.h b/drivers/net/bnxt/tf_ulp/ulp_utils.h
index 7a8145b5df..ce20f1916f 100644
--- a/drivers/net/bnxt/tf_ulp/ulp_utils.h
+++ b/drivers/net/bnxt/tf_ulp/ulp_utils.h
@@ -1107,4 +1107,6 @@ ulp_blob_append(struct ulp_blob *dst, struct ulp_blob *src,
 	uint8_t *src_buf = ulp_blob_data_get(src, &num);
 
+	if (unlikely(src_buf == NULL))
+		return -EINVAL;
 	if (unlikely((src_offset + src_len) > num))
 		return -EINVAL;
-- 
2.53.0

---
  Diff of the applied patch vs upstream commit (please double-check if non-empty:
---
--- -	2026-02-26 10:16:50.115710037 +0000
+++ 0076-net-bnxt-tf_ulp-fix-minsize-build.patch	2026-02-26 10:16:47.010543775 +0000
@@ -1 +1 @@
-From 374125fc8508efd83cfb6896639cc04e3e5d951c Mon Sep 17 00:00:00 2001
+From 118d288e31aa678514b2ee728ae7f34e4f528e7d Mon Sep 17 00:00:00 2001
@@ -5,0 +6,2 @@
+[ upstream commit 374125fc8508efd83cfb6896639cc04e3e5d951c ]
+
@@ -21 +22,0 @@
-Cc: stable at dpdk.org



More information about the stable mailing list