From: Herbert Xu Date: Mon, 7 Apr 2025 10:21:02 +0000 (+0800) Subject: crypto: acomp - Use cra_reqsize X-Git-Tag: v6.16-rc1~206^2~290 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=dbad301d9f8565f0e14004c0dbbe169e09756cb9;p=thirdparty%2Fkernel%2Flinux.git crypto: acomp - Use cra_reqsize Use the common reqsize if present. Signed-off-by: Herbert Xu --- diff --git a/crypto/acompress.c b/crypto/acompress.c index 674325ecefbc5..36b52a72a43be 100644 --- a/crypto/acompress.c +++ b/crypto/acompress.c @@ -109,7 +109,7 @@ static int crypto_acomp_init_tfm(struct crypto_tfm *tfm) acomp->compress = alg->compress; acomp->decompress = alg->decompress; - acomp->reqsize = alg->reqsize; + acomp->reqsize = alg->base.cra_reqsize ?: alg->reqsize; acomp->base.exit = crypto_acomp_exit_tfm;