Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

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

Ensure that the direction for dma_map_sg and dma_unmap_sg is
consistent.

Fixes: 2566de3e06a3 ("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>

authored by

Chenghai Huang and committed by
Herbert Xu
4154f7d3 e7507439

+1 -1
+1 -1
drivers/crypto/hisilicon/sgl.c
··· 260 260 return curr_hw_sgl; 261 261 262 262 err_unmap: 263 - dma_unmap_sg(dev, sgl, sg_n, DMA_BIDIRECTIONAL); 263 + dma_unmap_sg(dev, sgl, sg_n, dir); 264 264 265 265 return ERR_PTR(ret); 266 266 }