[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <20230803102901.3116858-1-gaurav.jain@nxp.com>
Date: Thu, 3 Aug 2023 15:59:01 +0530
From: Gaurav Jain <gaurav.jain@....com>
To: Herbert Xu <herbert@...dor.apana.org.au>,
"David S . Miller" <davem@...emloft.net>,
Varun Sethi <V.Sethi@....com>,
Meenakshi Aggarwal <meenakshi.aggarwal@....com>,
linux-crypto@...r.kernel.org, linux-kernel@...r.kernel.org
Cc: Gaurav Jain <gaurav.jain@....com>
Subject: [PATCH] crypto: caam: use dma align for crypt tfm ctx
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@....com>
---
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
Powered by blists - more mailing lists