diff options
author | Ovidiu Panait <ovidiu.panait@windriver.com> | 2023-12-18 18:46:43 +0200 |
---|---|---|
committer | Herbert Xu <herbert@gondor.apana.org.au> | 2023-12-29 11:25:55 +0800 |
commit | 4452c64ee41b3ebcadd8285781d2e7d67b15581b (patch) | |
tree | 623df4de43eeeafcfeb3c2cc92f9cab01624ab97 | |
parent | bfcec4c65b335706dda84e84cdcc386e44fdb3c8 (diff) | |
download | linux-stable-4452c64ee41b3ebcadd8285781d2e7d67b15581b.tar.gz linux-stable-4452c64ee41b3ebcadd8285781d2e7d67b15581b.tar.bz2 linux-stable-4452c64ee41b3ebcadd8285781d2e7d67b15581b.zip |
crypto: rk3288 - 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>
-rw-r--r-- | drivers/crypto/rockchip/rk3288_crypto_skcipher.c | 4 |
1 files 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; } |