Commit cc98d8ce authored by Herbert Xu's avatar Herbert Xu
Browse files

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: 09646c98 ("crypto: iaa - Add irq support for the crypto async interface")
Signed-off-by: default avatarHerbert Xu <herbert@gondor.apana.org.au>
parent 184e56e7
Loading
Loading
Loading
Loading
+2 −4
Original line number Diff line number Diff line
@@ -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,"