diff options
author | Ovidiu Panait <ovidiu.panait@windriver.com> | 2023-12-18 19:46:44 +0300 |
---|---|---|
committer | Herbert Xu <herbert@gondor.apana.org.au> | 2023-12-29 06:25:55 +0300 |
commit | 3088f5e5d5f676855752d021767473cbdfdef085 (patch) | |
tree | a98d2bbb0b960daae0e1845eeb2682eff8e2bfde /drivers/crypto | |
parent | 4452c64ee41b3ebcadd8285781d2e7d67b15581b (diff) | |
download | linux-3088f5e5d5f676855752d021767473cbdfdef085.tar.xz |
crypto: amlogic - 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>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Diffstat (limited to 'drivers/crypto')
-rw-r--r-- | drivers/crypto/amlogic/amlogic-gxl-cipher.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/crypto/amlogic/amlogic-gxl-cipher.c b/drivers/crypto/amlogic/amlogic-gxl-cipher.c index 3308406612fc..29048da6f50a 100644 --- a/drivers/crypto/amlogic/amlogic-gxl-cipher.c +++ b/drivers/crypto/amlogic/amlogic-gxl-cipher.c @@ -327,8 +327,8 @@ int meson_cipher_init(struct crypto_tfm *tfm) return PTR_ERR(op->fallback_tfm); } - sktfm->reqsize = sizeof(struct meson_cipher_req_ctx) + - crypto_skcipher_reqsize(op->fallback_tfm); + crypto_skcipher_set_reqsize(sktfm, sizeof(struct meson_cipher_req_ctx) + + crypto_skcipher_reqsize(op->fallback_tfm)); return 0; } |