Skip to contentSkip to conversation

crypto/cnxk: fix uninitialized scalar variable

PATCH Applied Gowrishankar Muthukrishnan 2 participants 3 messages May 15, 2025 – May 21, 2025 Crypto API

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 crypto/cnxk: fix uninitialized scalar variable

This change fixes an uninitialized local variable as reported in coverity issue 445390.

Coverity-issue: 445390

Fixes a8ebe94f8cc ("crypto/cnxk: support EdDSA")
---
 drivers/crypto/cnxk/cnxk_ae.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/crypto/cnxk/cnxk_ae.h +1 -1
index 75d6a536ae..8508ab8736 100644
@@ -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:
Signature · 1 line
2.25.1