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

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>

authored by

Ovidiu Panait and committed by
Herbert Xu
3088f5e5 4452c64e

+2 -2
+2 -2
drivers/crypto/amlogic/amlogic-gxl-cipher.c
··· 327 327 return PTR_ERR(op->fallback_tfm); 328 328 } 329 329 330 - sktfm->reqsize = sizeof(struct meson_cipher_req_ctx) + 331 - crypto_skcipher_reqsize(op->fallback_tfm); 330 + crypto_skcipher_set_reqsize(sktfm, sizeof(struct meson_cipher_req_ctx) + 331 + crypto_skcipher_reqsize(op->fallback_tfm)); 332 332 333 333 return 0; 334 334 }