patch 'net/iavf: fix memory leak on error when adding flow parser' has been queued to stable release 25.11.3
Kevin Traynor
ktraynor at redhat.com
Thu Jul 30 11:16:35 CEST 2026
Hi,
FYI, your patch has been queued to stable release 25.11.3
Note it hasn't been pushed to http://dpdk.org/browse/dpdk-stable yet.
It will be pushed if I get no objections before 08/04/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/90755405c99fb66f78711df91eb2710dd1653e74
Thanks.
Kevin
---
>From 90755405c99fb66f78711df91eb2710dd1653e74 Mon Sep 17 00:00:00 2001
From: Bruce Richardson <bruce.richardson at intel.com>
Date: Fri, 10 Jul 2026 11:34:00 +0100
Subject: [PATCH] net/iavf: fix memory leak on error when adding flow parser
[ upstream commit 2bc0171b147b2f501232e2ef0a28ee551ebdf278 ]
In iavf_register_parser, the final "else" branch is an error leg which
returns immediately, without adding the newly allocated parser_node to a
TAILQ. Add a free call for that parser_node in the error case to avoid
leaking memory.
Fixes: ff2d0c345c3b ("net/iavf: support generic flow API")
Signed-off-by: Bruce Richardson <bruce.richardson at intel.com>
Acked-by: Ciara Loftus <ciara.loftus at intel.com>
---
drivers/net/intel/iavf/iavf_generic_flow.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/drivers/net/intel/iavf/iavf_generic_flow.c b/drivers/net/intel/iavf/iavf_generic_flow.c
index 42ecc90d1d..2ce5488cff 100644
--- a/drivers/net/intel/iavf/iavf_generic_flow.c
+++ b/drivers/net/intel/iavf/iavf_generic_flow.c
@@ -1905,4 +1905,5 @@ iavf_register_parser(struct iavf_flow_parser *parser,
TAILQ_INSERT_HEAD(list, parser_node, node);
} else {
+ rte_free(parser_node);
return -EINVAL;
}
--
2.55.0
---
Diff of the applied patch vs upstream commit (please double-check if non-empty:
---
--- - 2026-07-30 10:16:03.097443168 +0100
+++ 0056-net-iavf-fix-memory-leak-on-error-when-adding-flow-p.patch 2026-07-30 10:16:01.488775548 +0100
@@ -1 +1 @@
-From 2bc0171b147b2f501232e2ef0a28ee551ebdf278 Mon Sep 17 00:00:00 2001
+From 90755405c99fb66f78711df91eb2710dd1653e74 Mon Sep 17 00:00:00 2001
@@ -5,0 +6,2 @@
+[ upstream commit 2bc0171b147b2f501232e2ef0a28ee551ebdf278 ]
+
@@ -12 +13,0 @@
-Cc: stable at dpdk.org
@@ -21 +22 @@
-index 84bb161bd1..92ca20031c 100644
+index 42ecc90d1d..2ce5488cff 100644
@@ -24 +25 @@
-@@ -1912,4 +1912,5 @@ iavf_register_parser(struct iavf_flow_parser *parser,
+@@ -1905,4 +1905,5 @@ iavf_register_parser(struct iavf_flow_parser *parser,
More information about the stable
mailing list