summaryrefslogtreecommitdiff
path: root/include/crypto
diff options
context:
space:
mode:
authorHerbert Xu <herbert@gondor.apana.org.au>2025-05-01 20:37:30 +0800
committerHerbert Xu <herbert@gondor.apana.org.au>2025-05-05 18:20:45 +0800
commit0efae411280988b43d5e5042aa047eeb276d1dac (patch)
tree5453ea0045c8e361ea5f15070782f9f9fd86e54a /include/crypto
parent8f66ccbd8f67ab41b29f54f383f8a8516be7696c (diff)
crypto: acomp - Clone folios properly
The folios contain references to the request itself so they must be setup again in the cloned request. Fixes: 5f3437e9c89e ("crypto: acomp - Simplify folio handling") Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Diffstat (limited to 'include/crypto')
-rw-r--r--include/crypto/acompress.h8
1 files changed, 2 insertions, 6 deletions
diff --git a/include/crypto/acompress.h b/include/crypto/acompress.h
index f1812e92d3e3..9eacb9fa375d 100644
--- a/include/crypto/acompress.h
+++ b/include/crypto/acompress.h
@@ -551,11 +551,7 @@ static inline struct acomp_req *acomp_request_on_stack_init(
return req;
}
-static inline struct acomp_req *acomp_request_clone(struct acomp_req *req,
- size_t total, gfp_t gfp)
-{
- return container_of(crypto_request_clone(&req->base, total, gfp),
- struct acomp_req, base);
-}
+struct acomp_req *acomp_request_clone(struct acomp_req *req,
+ size_t total, gfp_t gfp);
#endif