Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

crypto: ccp - Invoke context callback when there is a backlog error

Invoke the callback routine associated with the crypto context
if an error is encountered sending the command to the CCP during
backlog processing. This is needed to free any resources used
by the command.

Signed-off-by: Tom Lendacky <thomas.lendacky@amd.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>

authored by

Tom Lendacky and committed by
Herbert Xu
950b10ba 0611451b

+3
+3
drivers/crypto/ccp/ccp-crypto-main.c
··· 183 183 break; 184 184 185 185 /* Error occurred, report it and get the next entry */ 186 + ctx = crypto_tfm_ctx(held->req->tfm); 187 + if (ctx->complete) 188 + ret = ctx->complete(held->req, ret); 186 189 held->req->complete(held->req, ret); 187 190 188 191 next = ccp_crypto_cmd_complete(held, &backlog);