[PATCH] crypto: caam: use dma align for crypt tfm ctx
From: Gaurav Jain
Date: Thu Aug 03 2023 - 06:29:33 EST
enginectx is not set when use crypto_tfm_ctx.
fixing this by modifying to crypto_tfm_ctx_dma
Fixes: 4cb4f7c11dee ("crypto: caam - Set DMA alignment explicitly")
Signed-off-by: Gaurav Jain <gaurav.jain@xxxxxxx>
---
crypto/crypto_engine.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/crypto/crypto_engine.c b/crypto/crypto_engine.c
index 74fcc0897041..ea1f41cbefe3 100644
--- a/crypto/crypto_engine.c
+++ b/crypto/crypto_engine.c
@@ -145,7 +145,7 @@ static void crypto_pump_requests(struct crypto_engine *engine,
}
}
- enginectx = crypto_tfm_ctx(async_req->tfm);
+ enginectx = crypto_tfm_ctx_dma(async_req->tfm);
if (enginectx->op.prepare_request) {
ret = enginectx->op.prepare_request(engine, async_req);
--
2.25.1