patch 'test/crypto: set to null after freeing operation' has been queued to stable release 24.11.3

Kevin Traynor ktraynor at redhat.com
Fri Jul 18 21:30:57 CEST 2025


Hi,

FYI, your patch has been queued to stable release 24.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 07/23/25. 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/f34209e81fa525b89326b55bccf1ff62a6843808

Thanks.

Kevin

---
>From f34209e81fa525b89326b55bccf1ff62a6843808 Mon Sep 17 00:00:00 2001
From: Nithinsen Kaithakadan <nkaithakadan at marvell.com>
Date: Wed, 18 Jun 2025 12:54:09 +0000
Subject: [PATCH] test/crypto: set to null after freeing operation

[ upstream commit 74164b5881526bffc142eb53b89d8900366222d3 ]

Set pointer to NULL post rte_crypto_op_free operation.

Fixes: 3bf0db60f5d2 ("test/crypto: add queue pair depth used count")
Fixes: 202d375c60bc ("app/test: add cryptodev unit and performance tests")
Fixes: ffbe3be0d4b5 ("app/test: add libcrypto")

Signed-off-by: Nithinsen Kaithakadan <nkaithakadan at marvell.com>
---
 app/test/test_cryptodev.c | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/app/test/test_cryptodev.c b/app/test/test_cryptodev.c
index d76cdf26d7..8a175b9e70 100644
--- a/app/test/test_cryptodev.c
+++ b/app/test/test_cryptodev.c
@@ -2597,4 +2597,5 @@ test_queue_pair_descriptor_count(void)
 		rte_pktmbuf_free(ops_deq[i]->sym->m_src);
 		rte_crypto_op_free(ops_deq[i]);
+		ops_deq[i] = NULL;
 	}
 
@@ -14754,4 +14755,5 @@ test_multi_session(void)
 		/* free crypto operation structure */
 		rte_crypto_op_free(ut_params->op);
+		ut_params->op = NULL;
 
 		/*
@@ -14895,4 +14897,5 @@ test_multi_session_random_usage(void)
 
 		rte_crypto_op_free(ut_paramz[j].ut_params.op);
+		ut_paramz[j].ut_params.op = NULL;
 
 		/*
-- 
2.50.0

---
  Diff of the applied patch vs upstream commit (please double-check if non-empty:
---
--- -	2025-07-18 20:29:15.299510058 +0100
+++ 0123-test-crypto-set-to-null-after-freeing-operation.patch	2025-07-18 20:29:11.069907757 +0100
@@ -1 +1 @@
-From 74164b5881526bffc142eb53b89d8900366222d3 Mon Sep 17 00:00:00 2001
+From f34209e81fa525b89326b55bccf1ff62a6843808 Mon Sep 17 00:00:00 2001
@@ -5,0 +6,2 @@
+[ upstream commit 74164b5881526bffc142eb53b89d8900366222d3 ]
+
@@ -11 +12,0 @@
-Cc: stable at dpdk.org
@@ -19 +20 @@
-index 7535ef6974..5229ac2bf6 100644
+index d76cdf26d7..8a175b9e70 100644
@@ -22 +23 @@
-@@ -2626,4 +2626,5 @@ test_queue_pair_descriptor_count(void)
+@@ -2597,4 +2597,5 @@ test_queue_pair_descriptor_count(void)
@@ -28 +29 @@
-@@ -14790,4 +14791,5 @@ test_multi_session(void)
+@@ -14754,4 +14755,5 @@ test_multi_session(void)
@@ -34 +35 @@
-@@ -14934,4 +14936,5 @@ test_multi_session_random_usage(void)
+@@ -14895,4 +14897,5 @@ test_multi_session_random_usage(void)



More information about the stable mailing list