aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/drivers/crypto/hisilicon/zip/zip_crypto.c
diff options
context:
space:
mode:
authorJonathan Cameron <Jonathan.Cameron@huawei.com>2019-11-19 13:42:56 +0800
committerHerbert Xu <herbert@gondor.apana.org.au>2019-12-11 16:34:44 +0800
commit8debacd60c69beab80736d4af4feca47c2e2bd9e (patch)
tree02ea8a9abab64a8f3abda061afc521a55b988456 /drivers/crypto/hisilicon/zip/zip_crypto.c
parentpadata: Remove broken queue flushing (diff)
downloadwireguard-linux-8debacd60c69beab80736d4af4feca47c2e2bd9e.tar.xz
wireguard-linux-8debacd60c69beab80736d4af4feca47c2e2bd9e.zip
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: dfed0098ab91 (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>
Diffstat (limited to '')
0 files changed, 0 insertions, 0 deletions