[PATCH] crypto/cnxk: fix uninitialized scalar variable
Gowrishankar Muthukrishnan
gmuthukrishn at marvell.com
Thu May 15 10:06:29 CEST 2025
This change fixes an uninitialized local variable as reported
in coverity issue 445390.
Coverity-issue: 445390
Fixes: a8ebe94f8cc ("crypto/cnxk: support EdDSA")
Cc: stable at dpdk.org
Signed-off-by: Gowrishankar Muthukrishnan <gmuthukrishn at marvell.com>
---
drivers/crypto/cnxk/cnxk_ae.h | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/crypto/cnxk/cnxk_ae.h b/drivers/crypto/cnxk/cnxk_ae.h
index 75d6a536ae..8508ab8736 100644
--- a/drivers/crypto/cnxk/cnxk_ae.h
+++ b/drivers/crypto/cnxk/cnxk_ae.h
@@ -191,7 +191,7 @@ static __rte_always_inline int
cnxk_ae_fill_ec_params(struct cnxk_ae_sess *sess, struct rte_crypto_asym_xform *xform)
{
struct roc_ae_ec_ctx *ec = &sess->ec_ctx;
- union cpt_inst_w4 w4;
+ union cpt_inst_w4 w4 = {0};
switch (xform->ec.curve_id) {
case RTE_CRYPTO_EC_GROUP_SECP192R1:
--
2.25.1
More information about the dev
mailing list