From: ovidiu.panait@windriver.com
To: linux-crypto@vger.kernel.org
Cc: linux-kernel@vger.kernel.org, herbert@gondor.apana.org.au,
davem@davemloft.net, Ovidiu Panait <ovidiu.panait@windriver.com>,
Corentin Labbe <clabbe.montjoie@gmail.com>,
Chen-Yu Tsai <wens@csie.org>,
Jernej Skrabec <jernej.skrabec@gmail.com>,
Samuel Holland <samuel@sholland.org>,
linux-arm-kernel@lists.infradead.org,
linux-sunxi@lists.linux.dev
Subject: [PATCH 7/7] crypto: sun8i-ss - Use helper to set reqsize
Date: Mon, 18 Dec 2023 18:46:49 +0200 [thread overview]
Message-ID: <20231218164649.2492465-7-ovidiu.panait@windriver.com> (raw)
In-Reply-To: <20231218164649.2492465-1-ovidiu.panait@windriver.com>
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: Corentin Labbe <clabbe.montjoie@gmail.com>
Cc: Chen-Yu Tsai <wens@csie.org>
Cc: Jernej Skrabec <jernej.skrabec@gmail.com>
Cc: Samuel Holland <samuel@sholland.org>
Cc: linux-arm-kernel@lists.infradead.org
Cc: linux-sunxi@lists.linux.dev
drivers/crypto/allwinner/sun8i-ss/sun8i-ss-cipher.c | 5 ++---
1 file changed, 2 insertions(+), 3 deletions(-)
diff --git a/drivers/crypto/allwinner/sun8i-ss/sun8i-ss-cipher.c b/drivers/crypto/allwinner/sun8i-ss/sun8i-ss-cipher.c
index 7fa359725ec7..9b9605ce8ee6 100644
--- a/drivers/crypto/allwinner/sun8i-ss/sun8i-ss-cipher.c
+++ b/drivers/crypto/allwinner/sun8i-ss/sun8i-ss-cipher.c
@@ -405,9 +405,8 @@ int sun8i_ss_cipher_init(struct crypto_tfm *tfm)
return PTR_ERR(op->fallback_tfm);
}
- sktfm->reqsize = sizeof(struct sun8i_cipher_req_ctx) +
- crypto_skcipher_reqsize(op->fallback_tfm);
-
+ crypto_skcipher_set_reqsize(sktfm, sizeof(struct sun8i_cipher_req_ctx) +
+ crypto_skcipher_reqsize(op->fallback_tfm));
memcpy(algt->fbname,
crypto_tfm_alg_driver_name(crypto_skcipher_tfm(op->fallback_tfm)),
--
2.34.1
next prev parent reply other threads:[~2023-12-18 16:46 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-12-18 16:46 [PATCH 1/7] crypto: rk3288 - Use helper to set reqsize ovidiu.panait
2023-12-18 16:46 ` [PATCH 2/7] crypto: amlogic " ovidiu.panait
2023-12-18 16:46 ` [PATCH 3/7] crypto: artpec6 " 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 ` ovidiu.panait [this message]
2023-12-18 19:56 ` [PATCH 7/7] crypto: sun8i-ss " Jernej Škrabec
2023-12-29 3:28 ` [PATCH 1/7] crypto: rk3288 " Herbert Xu
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20231218164649.2492465-7-ovidiu.panait@windriver.com \
--to=ovidiu.panait@windriver.com \
--cc=clabbe.montjoie@gmail.com \
--cc=davem@davemloft.net \
--cc=herbert@gondor.apana.org.au \
--cc=jernej.skrabec@gmail.com \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-crypto@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-sunxi@lists.linux.dev \
--cc=samuel@sholland.org \
--cc=wens@csie.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox