crypto: hisilicon/zip - Use temporary sqe when doing work
authorZhou Wang <wangzhou1@hisilicon.com>
Sat, 9 May 2020 09:44:05 +0000 (17:44 +0800)
committerHerbert Xu <herbert@gondor.apana.org.au>
Fri, 15 May 2020 06:15:03 +0000 (16:15 +1000)
commit2c959a33f8630a008c7047e90312ba10ea2c78b7
tree09b03f0bda2b03f033c646c97e1c7273e7dd2ef6
parentdbdc1ec31fc05c118eedb4211f502e6352c915b9
crypto: hisilicon/zip - Use temporary sqe when doing work

Currently zip sqe is stored in hisi_zip_qp_ctx, which will bring corruption
with multiple parallel users of the crypto tfm.

This patch removes the zip_sqe in hisi_zip_qp_ctx and uses a temporary sqe
instead.

Signed-off-by: Zhou Wang <wangzhou1@hisilicon.com>
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
Signed-off-by: Shukun Tan <tanshukun1@huawei.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
drivers/crypto/hisilicon/zip/zip_crypto.c