[PATCH 09/11] crypto/dpaa2_sec: initialize the authdata
Gagandeep Singh
g.singh at nxp.com
Wed Jul 3 12:26:47 CEST 2024
From: Hemant Agrawal <hemant.agrawal at nxp.com>
This patch memset the authdata to 0.
Signed-off-by: Hemant Agrawal <hemant.agrawal at nxp.com>
---
drivers/crypto/dpaa2_sec/dpaa2_sec_dpseci.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/drivers/crypto/dpaa2_sec/dpaa2_sec_dpseci.c b/drivers/crypto/dpaa2_sec/dpaa2_sec_dpseci.c
index 88cca1b429..e115007cfd 100644
--- a/drivers/crypto/dpaa2_sec/dpaa2_sec_dpseci.c
+++ b/drivers/crypto/dpaa2_sec/dpaa2_sec_dpseci.c
@@ -2218,6 +2218,8 @@ dpaa2_sec_auth_init(struct rte_crypto_sym_xform *xform,
PMD_INIT_FUNC_TRACE();
+ memset(&authdata, 0, sizeof(authdata));
+
/* For SEC AUTH three descriptors are required for various stages */
priv = (struct ctxt_priv *)rte_zmalloc(NULL,
sizeof(struct ctxt_priv) + 3 *
--
2.25.1
More information about the dev
mailing list