Skip to content

Commit

Permalink
crypto/ccp: fix CPU authentication crash
Browse files Browse the repository at this point in the history
[ upstream commit b3d1a3c ]

when ccp_auth_opt=1 is set and if authentication error occurred,
ccp driver crash. The enqueue referance count nb_ops miss match
with dequeue nb_ops on authentication error.

Fixes: e0d88a3 ("crypto/ccp: support run-time CPU based auth")

Signed-off-by: Amaranath Somalapuram <asomalap@amd.com>
  • Loading branch information
Amaranath Somalapuram authored and kevintraynor committed Dec 11, 2019
1 parent 7464c5f commit 2ae8d83
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/crypto/ccp/ccp_crypto.c
Expand Up @@ -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);

Expand Down

0 comments on commit 2ae8d83

Please sign in to comment.