linux/drivers/crypto/hisilicon
Jonathan Cameron 8debacd60c crypto: hisilicon - Fix issue with wrong number of sg elements after dma map
We fill the hardware scatter gather list assuming it will need the same
number of elements at the original scatterlist. If an IOMMU is involved,
then it may well need fewer. The return value of dma_map_sg tells us how
many.

Probably never caused visible problems as the hardware won't get to
the elements that are incorrect before it finds enough space.

Fixes: dfed0098ab (crypto: hisilicon - add hardware SGL support)
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
Signed-off-by: Zhou Wang <wangzhou1@hisilicon.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
2019-12-11 16:34:44 +08:00
..
hpre crypto: hisilicon: Fix misuse of GENMASK macro 2019-10-23 19:47:00 +11:00
sec crypto: hisilicon - Matching the dma address for dma_pool_free() 2019-09-20 22:53:09 +10:00
sec2 crypto: hisilicon - fix a NULL vs IS_ERR() bug in sec_create_qp_ctx() 2019-11-27 13:08:50 +08:00
zip crypto: hisilicon - no need to check return value of debugfs_create functions 2019-11-17 08:37:29 +08:00
Kconfig crypto: hisilicon - add HiSilicon SEC V2 driver 2019-11-22 18:48:36 +08:00
Makefile crypto: hisilicon - add HiSilicon SEC V2 driver 2019-11-22 18:48:36 +08:00
qm.c crypto: hisilicon - no need to check return value of debugfs_create functions 2019-11-17 08:37:29 +08:00
qm.h crypto: hisilicon - fix to return sub-optimal device when best device has no qps 2019-11-01 13:42:47 +08:00
sgl.c crypto: hisilicon - Fix issue with wrong number of sg elements after dma map 2019-12-11 16:34:44 +08:00