[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <20231218164649.2492465-1-ovidiu.panait@windriver.com>
Date: Mon, 18 Dec 2023 18:46:43 +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>,
Heiko Stuebner <heiko@...ech.de>, Corentin Labbe <clabbe@...libre.com>,
linux-rockchip@...ts.infradead.org,
linux-arm-kernel@...ts.infradead.org
Subject: [PATCH 1/7] crypto: rk3288 - 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: Heiko Stuebner <heiko@...ech.de>
Cc: Corentin Labbe <clabbe@...libre.com>
Cc: linux-rockchip@...ts.infradead.org
Cc: linux-arm-kernel@...ts.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
Powered by blists - more mailing lists