Skip to contentSkip to conversation

crypto/cnxk: fix status code in asymmetric operation

PATCH Applied Gowrishankar Muthukrishnan 2 participants 2 messages Feb 16, 2025 – Mar 2, 2025 Crypto API

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 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")
---
 drivers/crypto/cnxk/cn9k_cryptodev_ops.c | 2 ++
 1 file changed, 2 insertions(+)
drivers/crypto/cnxk/cn9k_cryptodev_ops.c +2 -0
index 8d10bc9f9b..2b1bd70c6d 100644
@@ -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;
Signature · 1 line
2.25.1