linux/drivers/crypto/hisilicon
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
..
hpre crypto: hisilicon/hpre - Use crypto_stdrng_get_bytes() 2026-04-03 08:56:12 +08:00
sec crypto: hisilicon - Fix dma_unmap_single() direction 2026-04-12 16:46:29 +08:00
sec2 crypto: hisilicon - remove unused and non-public APIs for qm and sec 2026-04-12 16:46:29 +08:00
trng crypto: hisilicon/trng - support tfms sharing the device 2026-01-31 10:52:31 +08:00
zip crypto: hisilicon - add device load query functionality to debugfs 2026-03-22 11:17:59 +09:00
debugfs.c crypto: hisilicon/qm - add const qualifier to info_name in struct qm_cmd_dump_item 2026-04-12 16:46:28 +08:00
Kconfig crypto: hisilicon/zip - add lz4 algorithm for hisi_zip 2026-01-31 10:52:31 +08:00
Makefile hwrng: histb - Move driver to drivers/char/hw_random/histb-rng.c 2023-05-12 18:48:01 +08:00
qm_common.h crypto: hisilicon/qm - simplify the status of qm 2023-12-01 18:03:26 +08:00
qm.c crypto: hisilicon - remove unused and non-public APIs for qm and sec 2026-04-12 16:46:29 +08:00
sgl.c Convert 'alloc_obj' family to use the new default GFP_KERNEL argument 2026-02-21 17:09:51 -08:00