From: Nithinsen Kaithakadan <nkaithakadan@marvell.com>
To: <dev@dpdk.org>, <stable@dpdk.org>
Cc: <adwivedi@marvell.com>, <anoobj@marvell.com>,
<ktejasree@marvell.com>, <gakhil@marvell.com>,
<fanzhang.oss@gmail.com>
Subject: [PATCH 3/3] test/crypto: set ptr to null post crypto op free
Date: Wed, 18 Jun 2025 12:54:09 +0000 [thread overview]
Message-ID: <20250618125410.767919-4-nkaithakadan@marvell.com> (raw)
In-Reply-To: <20250618125410.767919-1-nkaithakadan@marvell.com>
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@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 7535ef6974..5229ac2bf6 100644
--- a/app/test/test_cryptodev.c
+++ b/app/test/test_cryptodev.c
@@ -2625,6 +2625,7 @@ 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;
}
return TEST_SUCCESS;
@@ -14789,6 +14790,7 @@ test_multi_session(void)
/* free crypto operation structure */
rte_crypto_op_free(ut_params->op);
+ ut_params->op = NULL;
/*
* free mbuf - both obuf and ibuf are usually the same,
@@ -14933,6 +14935,7 @@ test_multi_session_random_usage(void)
ut_paramz[j].iv);
rte_crypto_op_free(ut_paramz[j].ut_params.op);
+ ut_paramz[j].ut_params.op = NULL;
/*
* free mbuf - both obuf and ibuf are usually the same,
--
2.48.1
prev parent reply other threads:[~2025-06-18 12:54 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-06-18 12:54 [PATCH 0/3] fixes and addition of aes ctr test vectors Nithinsen Kaithakadan
2025-06-18 12:54 ` [PATCH 1/3] test/crypto: add ctr test cases and vectors Nithinsen Kaithakadan
2025-06-18 12:54 ` [PATCH 2/3] test/crypto: set iv len to 32B for auth and cipher Nithinsen Kaithakadan
2025-06-18 12:54 ` Nithinsen Kaithakadan [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20250618125410.767919-4-nkaithakadan@marvell.com \
--to=nkaithakadan@marvell.com \
--cc=adwivedi@marvell.com \
--cc=anoobj@marvell.com \
--cc=dev@dpdk.org \
--cc=fanzhang.oss@gmail.com \
--cc=gakhil@marvell.com \
--cc=ktejasree@marvell.com \
--cc=stable@dpdk.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).