public inbox for linux-crypto@vger.kernel.org
 help / color / mirror / Atom feed
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>,
	Hans Ulli Kroll <ulli.kroll@googlemail.com>,
	Linus Walleij <linus.walleij@linaro.org>,
	Corentin Labbe <clabbe@baylibre.com>,
	linux-arm-kernel@lists.infradead.org
Subject: [PATCH 5/7] crypto: sl3516 - Use helper to set reqsize
Date: Mon, 18 Dec 2023 18:46:47 +0200	[thread overview]
Message-ID: <20231218164649.2492465-5-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: Hans Ulli Kroll <ulli.kroll@googlemail.com>
Cc: Linus Walleij <linus.walleij@linaro.org>
Cc: Corentin Labbe <clabbe@baylibre.com>
Cc: linux-arm-kernel@lists.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


  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 ` ovidiu.panait [this message]
2023-12-18 23:44   ` [PATCH 5/7] crypto: sl3516 " 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

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-5-ovidiu.panait@windriver.com \
    --to=ovidiu.panait@windriver.com \
    --cc=clabbe@baylibre.com \
    --cc=davem@davemloft.net \
    --cc=herbert@gondor.apana.org.au \
    --cc=linus.walleij@linaro.org \
    --cc=linux-arm-kernel@lists.infradead.org \
    --cc=linux-crypto@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=ulli.kroll@googlemail.com \
    /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