public inbox for linux-arm-kernel@lists.infradead.org
 help / color / mirror / Atom feed
* [PATCH 1/7] crypto: rk3288 - Use helper to set reqsize
@ 2023-12-18 16:46 ovidiu.panait
  2023-12-18 16:46 ` [PATCH 4/7] crypto: stm32/cryp " ovidiu.panait
                   ` (4 more replies)
  0 siblings, 5 replies; 9+ messages in thread
From: ovidiu.panait @ 2023-12-18 16:46 UTC (permalink / raw)
  To: linux-crypto
  Cc: linux-kernel, herbert, davem, Ovidiu Panait, Heiko Stuebner,
	Corentin Labbe, linux-rockchip, linux-arm-kernel

From: Ovidiu Panait <ovidiu.panait@windriver.com>

The value of reqsize must only be changed through the helper.

Signed-off-by: Ovidiu Panait <ovidiu.panait@windriver.com>
---
Cc: Heiko Stuebner <heiko@sntech.de>
Cc: Corentin Labbe <clabbe@baylibre.com>
Cc: linux-rockchip@lists.infradead.org
Cc: linux-arm-kernel@lists.infradead.org

 drivers/crypto/rockchip/rk3288_crypto_skcipher.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/drivers/crypto/rockchip/rk3288_crypto_skcipher.c b/drivers/crypto/rockchip/rk3288_crypto_skcipher.c
index da95747d973f..9393e10671c2 100644
--- a/drivers/crypto/rockchip/rk3288_crypto_skcipher.c
+++ b/drivers/crypto/rockchip/rk3288_crypto_skcipher.c
@@ -445,8 +445,8 @@ static int rk_cipher_tfm_init(struct crypto_skcipher *tfm)
 		return PTR_ERR(ctx->fallback_tfm);
 	}
 
-	tfm->reqsize = sizeof(struct rk_cipher_rctx) +
-		crypto_skcipher_reqsize(ctx->fallback_tfm);
+	crypto_skcipher_set_reqsize(tfm, sizeof(struct rk_cipher_rctx) +
+				    crypto_skcipher_reqsize(ctx->fallback_tfm));
 
 	return 0;
 }
-- 
2.34.1


_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel

^ permalink raw reply related	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2023-12-29  3:29 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-12-18 16:46 [PATCH 1/7] crypto: rk3288 - Use helper to set reqsize ovidiu.panait
2023-12-18 16:46 ` [PATCH 4/7] crypto: stm32/cryp " ovidiu.panait
2023-12-18 16:46 ` [PATCH 5/7] crypto: sl3516 " ovidiu.panait
2023-12-18 23:44   ` Linus Walleij
2023-12-18 16:46 ` [PATCH 6/7] crypto: sun8i-ce " ovidiu.panait
2023-12-18 19:56   ` Jernej Škrabec
2023-12-18 16:46 ` [PATCH 7/7] crypto: sun8i-ss " ovidiu.panait
2023-12-18 19:56   ` Jernej Škrabec
2023-12-29  3:28 ` [PATCH 1/7] crypto: rk3288 " Herbert Xu

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox