[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <20231218164649.2492465-5-ovidiu.panait@windriver.com>
Date: Mon, 18 Dec 2023 18:46:47 +0200
From: ovidiu.panait@...driver.com
To: linux-crypto@...r.kernel.org
Cc: linux-kernel@...r.kernel.org, herbert@...dor.apana.org.au,
davem@...emloft.net, Ovidiu Panait <ovidiu.panait@...driver.com>,
Hans Ulli Kroll <ulli.kroll@...glemail.com>,
Linus Walleij <linus.walleij@...aro.org>,
Corentin Labbe <clabbe@...libre.com>,
linux-arm-kernel@...ts.infradead.org
Subject: [PATCH 5/7] crypto: sl3516 - Use helper to set reqsize
From: Ovidiu Panait <ovidiu.panait@...driver.com>
The value of reqsize must only be changed through the helper.
Signed-off-by: Ovidiu Panait <ovidiu.panait@...driver.com>
---
Cc: Hans Ulli Kroll <ulli.kroll@...glemail.com>
Cc: Linus Walleij <linus.walleij@...aro.org>
Cc: Corentin Labbe <clabbe@...libre.com>
Cc: linux-arm-kernel@...ts.infradead.org
drivers/crypto/gemini/sl3516-ce-cipher.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/drivers/crypto/gemini/sl3516-ce-cipher.c b/drivers/crypto/gemini/sl3516-ce-cipher.c
index 49dce9e0a834..583010b2d007 100644
--- a/drivers/crypto/gemini/sl3516-ce-cipher.c
+++ b/drivers/crypto/gemini/sl3516-ce-cipher.c
@@ -332,8 +332,8 @@ int sl3516_ce_cipher_init(struct crypto_tfm *tfm)
return PTR_ERR(op->fallback_tfm);
}
- sktfm->reqsize = sizeof(struct sl3516_ce_cipher_req_ctx) +
- crypto_skcipher_reqsize(op->fallback_tfm);
+ crypto_skcipher_set_reqsize(sktfm, sizeof(struct sl3516_ce_cipher_req_ctx) +
+ crypto_skcipher_reqsize(op->fallback_tfm));
dev_info(op->ce->dev, "Fallback for %s is %s\n",
crypto_tfm_alg_driver_name(&sktfm->base),
--
2.34.1
Powered by blists - more mailing lists