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

Configure Feed

Select the types of activity you want to include in your feed.

crypto: acomp - Add missing return statements in compress/decompress

The return statements were missing which causes REQ_CHAIN algorithms
to execute twice for every request.

Reported-by: Eric Biggers <ebiggers@kernel.org>
Fixes: 64929fe8c0a4 ("crypto: acomp - Remove request chaining")
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>

+2 -2
+2 -2
crypto/acompress.c
··· 292 292 if (acomp_req_on_stack(req) && acomp_is_async(tfm)) 293 293 return -EAGAIN; 294 294 if (crypto_acomp_req_chain(tfm) || acomp_request_issg(req)) 295 - crypto_acomp_reqtfm(req)->compress(req); 295 + return crypto_acomp_reqtfm(req)->compress(req); 296 296 return acomp_do_req_chain(req, true); 297 297 } 298 298 EXPORT_SYMBOL_GPL(crypto_acomp_compress); ··· 304 304 if (acomp_req_on_stack(req) && acomp_is_async(tfm)) 305 305 return -EAGAIN; 306 306 if (crypto_acomp_req_chain(tfm) || acomp_request_issg(req)) 307 - crypto_acomp_reqtfm(req)->decompress(req); 307 + return crypto_acomp_reqtfm(req)->decompress(req); 308 308 return acomp_do_req_chain(req, false); 309 309 } 310 310 EXPORT_SYMBOL_GPL(crypto_acomp_decompress);