crypto: hisilicon/sgl - fix inconsistent map/unmap direction issue

[ Upstream commit 4154f7d3b1 ]

Ensure that the direction for dma_map_sg and dma_unmap_sg is
consistent.

Fixes: 2566de3e06 ("crypto: hisilicon - Use fine grained DMA mapping direction")
Signed-off-by: Chenghai Huang <huangchenghai2@huawei.com>
Reviewed-by: Zenghui Yu <yuzenghui@huawei.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Signed-off-by: Sasha Levin <sashal@kernel.org>
This commit is contained in:
Chenghai Huang 2025-12-19 11:36:19 +08:00 • committed by Greg Kroah-Hartman
commit 33d3290333