crypto/cnxk: fix uninitialized scalar variable
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")
Signed-off-by Gowrishankar Muthukrishnan <[email protected]>
--- drivers/crypto/cnxk/cnxk_ae.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/crypto/cnxk/cnxk_ae.h +1 -1
@@ -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
Dispatcher unit test failed which is unrelated to this patch and looks like infrastructure issue.
Recheck-request: loongarch-unit-testing
--
Gowrishankar
Quoted 8 lines
This change fixes an uninitialized local variable as reported in coverity issue 445390.
Coverity-issue: 445390
Fixes a8ebe94f8cc ("crypto/cnxk: support EdDSA")Signed-off-by Gowrishankar Muthukrishnan <[email protected]>
Quoted 8 lines
Quoted 8 lines
This change fixes an uninitialized local variable as reported in coverity issue 445390.
Coverity-issue: 445390
Fixes a8ebe94f8cc ("crypto/cnxk: support EdDSA")Signed-off-by Gowrishankar Muthukrishnan <[email protected]>
Acked-by Akhil Goyal <[email protected]>
Applied to dpdk-next-crypto
Thanks.