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