diff mbox series

[3/7] crypto: acomp - Use cra_reqsize

Message ID 1ac9d6c87fda00d0bdff38982e7d4ccbb5fe1f7a.1744021074.git.herbert@gondor.apana.org.au (mailing list archive)
State Accepted
Delegated to: Herbert Xu
Headers show
Series crypto: Add reqsize to crypto_alg | expand

Commit Message

Herbert Xu April 7, 2025, 10:21 a.m. UTC
Use the common reqsize if present.

Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
---
 crypto/acompress.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
diff mbox series

Patch

diff --git a/crypto/acompress.c b/crypto/acompress.c
index 869c926d3986..e9406eb8fcf4 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;