crypto/ccp: fix CPU authentication crash
authorAmaranath Somalapuram <asomalap@amd.com>
Fri, 22 Nov 2019 06:46:47 +0000 (12:16 +0530)
committerAkhil Goyal <akhil.goyal@nxp.com>
Mon, 25 Nov 2019 10:01:36 +0000 (11:01 +0100)
commitb3d1a3c66da386955966d512a4a6fe39bda1be78
treea93663a3598228c438b9bb46cd528ef45338e074
parent0121f275f871a164de26966bdf0897b57e7ffabf
crypto/ccp: fix CPU authentication crash

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: e0d88a394e ("crypto/ccp: support run-time CPU based auth")
Cc: stable@dpdk.org
Signed-off-by: Amaranath Somalapuram <asomalap@amd.com>
drivers/crypto/ccp/ccp_crypto.c