]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
crypto: hisilicon - Fix dma_unmap_single() direction
authorThomas Fourier <fourier.thomas@gmail.com>
Mon, 30 Mar 2026 15:19:32 +0000 (17:19 +0200)
committerHerbert Xu <herbert@gondor.apana.org.au>
Sun, 12 Apr 2026 08:46:29 +0000 (16:46 +0800)
commit1ee57ab93b75eb59f426aef37b5498a7ffc28278
tree28a94541ea29c9e882375d730096683034221831
parenta1b80018b8cec27fc06a8b04a7f8b5f6cfe86eae
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: 915e4e8413da ("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>
drivers/crypto/hisilicon/sec/sec_algs.c