Thread (5 messages) 5 messages, 3 authors, 2025-06-13

Re: [PATCH 1/3] crypto: sun8i-ce - fix nents passed to dma_unmap_sg()

From: Corentin Labbe <clabbe.montjoie@gmail.com>
Date: 2025-05-20 08:24:54
Also in: linux-crypto, linux-sunxi, lkml

Le Mon, May 19, 2025 at 06:13:48PM +0300, Ovidiu Panait a écrit :
In sun8i_ce_cipher_unprepare(), dma_unmap_sg() is incorrectly called with
the number of entries returned by dma_map_sg(), rather than using the
original number of entries passed when mapping the scatterlist.

To fix this, stash the original number of entries passed to dma_map_sg()
in the request context.

Fixes: 0605fa0f7826 ("crypto: sun8i-ce - split into prepare/run/unprepare")
Signed-off-by: Ovidiu Panait <redacted>
---
 drivers/crypto/allwinner/sun8i-ce/sun8i-ce-cipher.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
Hello

All patches are:
Acked-by: Corentin LABBE <clabbe.montjoie@gmail.com>
Tested-by: Corentin LABBE <clabbe.montjoie@gmail.com>

Thanks
Regards
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help