Skip to contentSkip to conversation

crypto/ccp: fix for crash when ccp cpu authentication algorithm fails when ccp_auth_opt=1 is set and authentication error occurred ccp driver crash.

PATCH In review [email protected] 1 participant 1 message Oct 14, 2019

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 3/6 crypto/ccp: fix for crash when ccp cpu authentication algorithm fails when ccp_auth_opt=1 is set and authentication error occurred ccp driver crash.

From: Amaranath Somalapuram <[email protected]>

---
 drivers/crypto/ccp/ccp_crypto.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/crypto/ccp/ccp_crypto.c +1 -1
index 19ae9153d..1837c8543 100644
@@ -2738,7 +2738,7 @@ process_ops_to_enqueue(struct ccp_qp *qp,
 							 session, auth_ctx);
 				if (op[i]->status !=
 				    RTE_CRYPTO_OP_STATUS_SUCCESS)
-					continue;
+					CCP_LOG_ERR("RTE_CRYPTO_OP_STATUS_AUTH_FAILED");
 			} else
 				result = ccp_crypto_auth(op[i], cmd_q, b_info);
 
Signature · 1 line
2.17.1