aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/crypto/intel/iaa/iaa_crypto_main.c
diff options
context:
space:
mode:
authorHerbert Xu <[email protected]>2025-03-24 04:04:18 +0000
committerHerbert Xu <[email protected]>2025-04-07 05:22:25 +0000
commitcc98d8ce934b99789d30421957fd6a20fffb1c22 (patch)
treefc89cf51c95b0dc4b62d8e6d5ef29999b0da8fcc /drivers/crypto/intel/iaa/iaa_crypto_main.c
parentcrypto: iaa - Move compression CRC into request object (diff)
downloadkernel-cc98d8ce934b99789d30421957fd6a20fffb1c22.tar.gz
kernel-cc98d8ce934b99789d30421957fd6a20fffb1c22.zip
crypto: iaa - Do not clobber req->base.data
The req->base.data field is for the user and must not be touched by the driver, unless you save it first. The iaa driver doesn't seem to be using the req->base.data value so just remove the assignment. Fixes: 09646c98d0bf ("crypto: iaa - Add irq support for the crypto async interface") 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.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/drivers/crypto/intel/iaa/iaa_crypto_main.c b/drivers/crypto/intel/iaa/iaa_crypto_main.c
index 4240a2e3d375..773aab8a8830 100644
--- a/drivers/crypto/intel/iaa/iaa_crypto_main.c
+++ b/drivers/crypto/intel/iaa/iaa_crypto_main.c
@@ -1185,8 +1185,7 @@ static int iaa_compress(struct crypto_tfm *tfm, struct acomp_req *req,
" src_addr %llx, dst_addr %llx\n", __func__,
active_compression_mode->name,
src_addr, dst_addr);
- } else if (ctx->async_mode)
- req->base.data = idxd_desc;
+ }
dev_dbg(dev, "%s: compression mode %s,"
" desc->src1_addr %llx, desc->src1_size %d,"
@@ -1423,8 +1422,7 @@ static int iaa_decompress(struct crypto_tfm *tfm, struct acomp_req *req,
" src_addr %llx, dst_addr %llx\n", __func__,
active_compression_mode->name,
src_addr, dst_addr);
- } else if (ctx->async_mode && !disable_async)
- req->base.data = idxd_desc;
+ }
dev_dbg(dev, "%s: decompression mode %s,"
" desc->src1_addr %llx, desc->src1_size %d,"