[PATCH 3/7] crypto: acomp - Use cra_reqsize

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Use the common reqsize if present.

Signed-off-by: Herbert Xu <herbert@xxxxxxxxxxxxxxxxxxx>
---
 crypto/acompress.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

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;
 
-- 
2.39.5





[Index of Archives]     [Kernel]     [Gnu Classpath]     [Gnu Crypto]     [DM Crypt]     [Netfilter]     [Bugtraq]
  Powered by Linux