diff options
author | Ovidiu Panait <ovidiu.panait@windriver.com> | 2023-12-18 18:46:49 +0200 |
---|---|---|
committer | Herbert Xu <herbert@gondor.apana.org.au> | 2023-12-29 11:25:55 +0800 |
commit | 73092efad56a4618a2005622eb5495cc631d2e99 (patch) | |
tree | 39c9feedd4d81ace7bd679685f0ac626b52fbb82 /drivers | |
parent | e9b21862587043e2e79ce114b15a578a09106e9e (diff) | |
download | linux-stable-73092efad56a4618a2005622eb5495cc631d2e99.tar.gz linux-stable-73092efad56a4618a2005622eb5495cc631d2e99.tar.bz2 linux-stable-73092efad56a4618a2005622eb5495cc631d2e99.zip |
crypto: sun8i-ss - Use helper to set reqsize
The value of reqsize must only be changed through the helper.
Signed-off-by: Ovidiu Panait <ovidiu.panait@windriver.com>
Acked-by: Jernej Skrabec <jernej.skrabec@gmail.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/crypto/allwinner/sun8i-ss/sun8i-ss-cipher.c | 5 |
1 files 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)), |