Re: [PATCH] crypto: hisilicon - Fix dma_unmap_single() direction
From: Thorsten Blum
Date: Mon Mar 30 2026 - 16:47:23 EST
On Mon, Mar 30, 2026 at 05:19:32PM +0200, Thomas Fourier wrote:
> 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@xxxxxxxxxxxxxxx>
> Signed-off-by: Thomas Fourier <fourier.thomas@xxxxxxxxx>
LGTM, thanks.
Reviewed-by: Thorsten Blum <thorsten.blum@xxxxxxxxx>