crypto/cnxk: fix status code in asymmetric operation
Checks
Commit Message
Return error code in an asymmetric operation status
when none of the known conditions met.
Fixes: d29c4e0a4bea ("crypto/cnxk: fix ECDH public key verification")
Signed-off-by: Gowrishankar Muthukrishnan <gmuthukrishn@marvell.com>
---
drivers/crypto/cnxk/cn9k_cryptodev_ops.c | 2 ++
1 file changed, 2 insertions(+)
Comments
> Subject: [PATCH] crypto/cnxk: fix status code in asymmetric operation
>
> Return error code in an asymmetric operation status
> when none of the known conditions met.
>
> Fixes: d29c4e0a4bea ("crypto/cnxk: fix ECDH public key verification")
>
> Signed-off-by: Gowrishankar Muthukrishnan <gmuthukrishn@marvell.com>
> ---
Applied to dpdk-next-crypto
Cc: stable@dpdk.org
@@ -529,6 +529,8 @@ cn9k_cpt_dequeue_post_process(struct cnxk_cpt_qp *qp, struct rte_crypto_op *cop,
cop->status = RTE_CRYPTO_OP_STATUS_SUCCESS;
return;
}
+ } else {
+ cop->status = RTE_CRYPTO_OP_STATUS_ERROR;
}
} else
cop->status = RTE_CRYPTO_OP_STATUS_ERROR;