linux/drivers/crypto/hisilicon/sec
Thomas Fourier 1ee57ab93b crypto: hisilicon - Fix dma_unmap_single() direction
The direction used to map the buffer skreq->iv is DMA_TO_DEVICE but it is
unmapped with direction DMA_BIDIRECTIONAL in the error path.

Change the unmap to match the mapping.

Fixes: 915e4e8413 ("crypto: hisilicon - SEC security accelerator driver")
Cc: <stable@vger.kernel.org>
Signed-off-by: Thomas Fourier <fourier.thomas@gmail.com>
Reviewed-by: Thorsten Blum <thorsten.blum@linux.dev>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
2026-04-12 16:46:29 +08:00
..
Makefile
sec_algs.c crypto: hisilicon - Fix dma_unmap_single() direction 2026-04-12 16:46:29 +08:00
sec_drv.c crypto: hisilicon/sec - Use int type to store negative error codes 2025-09-13 12:11:06 +08:00
sec_drv.h crypto: hisilicon - Kunpeng916 crypto driver don't sleep when in softirq 2022-07-08 15:21:16 +08:00