linux/drivers/crypto/hisilicon
Hui Tang 0b0553b701 crypto: hisilicon/hpre - fix unmapping invalid dma address
Currently, an invalid dma address may be unmapped when calling
'xx_data_clr_all' in error path, so check dma address of sqe in/out
if initialized before calling 'dma_free_coherent' or 'dma_unmap_single'.

Fixes: a9214b0b6e ("crypto: hisilicon - fix the check on dma address")
Signed-off-by: Hui Tang <tanghui20@huawei.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
2021-05-21 16:17:30 +08:00
..
hpre crypto: hisilicon/hpre - fix unmapping invalid dma address 2021-05-21 16:17:30 +08:00
sec crypto: hisilicon/sec - use the correct print format 2021-04-16 21:16:33 +10:00
sec2 crypto: hisilicon - add new error type for SEC 2021-04-22 17:31:30 +10:00
trng crypto: hisilicon/trng - add version to adapt new algorithm 2021-04-16 21:16:31 +10:00
zip crypto: hisilicon - support new error types for ZIP 2021-04-22 17:31:29 +10:00
Kconfig crypto: hisilicon/hpre - fix Kconfig 2021-03-26 20:15:57 +11:00
Makefile crypto: hisilicon/trng - add HiSilicon TRNG driver support 2020-11-27 17:13:43 +11:00
qm.c crypto: hisilicon - enable new error types for QM 2021-04-22 17:31:30 +10:00
qm.h crypto: hisilicon - enable new error types for QM 2021-04-22 17:31:30 +10:00
sgl.c crypto: hisilicon/sgl - fix the sg buf unmap 2021-04-16 21:16:34 +10:00