]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
crypto: iaa - Switch to ACOMP_FBREQ_ON_STACK
authorHerbert Xu <herbert@gondor.apana.org.au>
Mon, 7 Apr 2025 10:02:58 +0000 (18:02 +0800)
committerHerbert Xu <herbert@gondor.apana.org.au>
Wed, 16 Apr 2025 07:16:20 +0000 (15:16 +0800)
Rather than copying the request by hand, use the ACOMP_FBREQ_ON_STACK
helper to do it.

Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
drivers/crypto/intel/iaa/iaa_crypto_main.c

index aa63df16f20b57afb09e85bc4d48f86be94baede..b4f15e738ceed685b1bf573ebb9a660e4c70155b 100644 (file)
@@ -999,12 +999,9 @@ out:
 
 static int deflate_generic_decompress(struct acomp_req *req)
 {
-       ACOMP_REQUEST_ON_STACK(fbreq, crypto_acomp_reqtfm(req));
+       ACOMP_FBREQ_ON_STACK(fbreq, req);
        int ret;
 
-       acomp_request_set_callback(fbreq, 0, NULL, NULL);
-       acomp_request_set_params(fbreq, req->src, req->dst, req->slen,
-                                req->dlen);
        ret = crypto_acomp_decompress(fbreq);
        req->dlen = fbreq->dlen;