crypto: octeontx - Use request_complete helpers
authorHerbert Xu <herbert@gondor.apana.org.au>
Tue, 31 Jan 2023 08:02:35 +0000 (16:02 +0800)
committerHerbert Xu <herbert@gondor.apana.org.au>
Mon, 13 Feb 2023 10:34:49 +0000 (18:34 +0800)
Use the request_complete helpers instead of calling the completion
function directly.

Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
drivers/crypto/marvell/octeontx/otx_cptvf_algs.c

index 83493dd..1c2c870 100644 (file)
@@ -138,7 +138,7 @@ static void otx_cpt_aead_callback(int status, void *arg1, void *arg2)
 
 complete:
        if (areq)
-               areq->complete(areq, status);
+               crypto_request_complete(areq, status);
 }
 
 static void output_iv_copyback(struct crypto_async_request *areq)
@@ -188,7 +188,7 @@ static void otx_cpt_skcipher_callback(int status, void *arg1, void *arg2)
                        pdev = cpt_info->pdev;
                        do_request_cleanup(pdev, cpt_info);
                }
-               areq->complete(areq, status);
+               crypto_request_complete(areq, status);
        }
 }