Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

authored by

Ovidiu Panait and committed by
Herbert Xu
4452c64e bfcec4c6

+2 -2
+2 -2
drivers/crypto/rockchip/rk3288_crypto_skcipher.c
··· 445 445 return PTR_ERR(ctx->fallback_tfm); 446 446 } 447 447 448 - tfm->reqsize = sizeof(struct rk_cipher_rctx) + 449 - crypto_skcipher_reqsize(ctx->fallback_tfm); 448 + crypto_skcipher_set_reqsize(tfm, sizeof(struct rk_cipher_rctx) + 449 + crypto_skcipher_reqsize(ctx->fallback_tfm)); 450 450 451 451 return 0; 452 452 }