Skip to content

Commit 7269198

Browse files
committed
crypto: iaa - Do not clobber req->base.data
JIRA: https://issues.redhat.com/browse/RHEL-87766 Upstream Status: merged into herbert/crypto-2.6.git Conflicts: missing 02c9742 ("crypto: iaa - Remove dst_null support") which is a part of a bigger patchset which was not backported. A result is small context differences. commit cc98d8c Author: Herbert Xu <herbert@gondor.apana.org.au> Date: Mon Mar 24 12:04:18 2025 +0800 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: 09646c9 ("crypto: iaa - Add irq support for the crypto async interface") Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au> Signed-off-by: Vladis Dronov <vdronov@redhat.com>
1 parent 75509ca commit 7269198

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

drivers/crypto/intel/iaa/iaa_crypto_main.c

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1191,8 +1191,7 @@ static int iaa_compress(struct crypto_tfm *tfm, struct acomp_req *req,
11911191
" src_addr %llx, dst_addr %llx\n", __func__,
11921192
active_compression_mode->name,
11931193
src_addr, dst_addr);
1194-
} else if (ctx->async_mode && !disable_async)
1195-
req->base.data = idxd_desc;
1194+
}
11961195

11971196
dev_dbg(dev, "%s: compression mode %s,"
11981197
" desc->src1_addr %llx, desc->src1_size %d,"
@@ -1429,8 +1428,7 @@ static int iaa_decompress(struct crypto_tfm *tfm, struct acomp_req *req,
14291428
" src_addr %llx, dst_addr %llx\n", __func__,
14301429
active_compression_mode->name,
14311430
src_addr, dst_addr);
1432-
} else if (ctx->async_mode && !disable_async)
1433-
req->base.data = idxd_desc;
1431+
}
14341432

14351433
dev_dbg(dev, "%s: decompression mode %s,"
14361434
" desc->src1_addr %llx, desc->src1_size %d,"

0 commit comments

Comments
 (0)