aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/crypto/intel/iaa/iaa_crypto_main.c
diff options
context:
space:
mode:
authorHerbert Xu <[email protected]>2025-04-07 10:02:58 +0000
committerHerbert Xu <[email protected]>2025-04-16 07:16:20 +0000
commitd0a5c9d079decad95a77638c19bc5b3a6a0ffe21 (patch)
tree1e8b8b6518b67f98c8415feded6b125987da7737 /drivers/crypto/intel/iaa/iaa_crypto_main.c
parentcrypto: acomp - Add ACOMP_FBREQ_ON_STACK (diff)
downloadkernel-d0a5c9d079decad95a77638c19bc5b3a6a0ffe21.tar.gz
kernel-d0a5c9d079decad95a77638c19bc5b3a6a0ffe21.zip
crypto: iaa - Switch to ACOMP_FBREQ_ON_STACK
Rather than copying the request by hand, use the ACOMP_FBREQ_ON_STACK helper to do it. Signed-off-by: Herbert Xu <[email protected]>
Diffstat (limited to 'drivers/crypto/intel/iaa/iaa_crypto_main.c')
-rw-r--r--drivers/crypto/intel/iaa/iaa_crypto_main.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/drivers/crypto/intel/iaa/iaa_crypto_main.c b/drivers/crypto/intel/iaa/iaa_crypto_main.c
index aa63df16f20b..b4f15e738cee 100644
--- a/drivers/crypto/intel/iaa/iaa_crypto_main.c
+++ b/drivers/crypto/intel/iaa/iaa_crypto_main.c
@@ -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;