]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
crypto: sun8i-ss - do not use sg_dma_len before calling DMA functions
authorCorentin Labbe <clabbe.montjoie@gmail.com>
Sun, 27 Apr 2025 11:12:36 +0000 (13:12 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 27 Jun 2025 10:07:06 +0000 (11:07 +0100)
commit4b0d9b37528e8fc8b8da9c75fd83899423aff376
tree9dd70ab4e1959d5752f2427fd82bf7c1903b15f2
parenta0ac3f85b2e3ef529e852f252a70311f9029d5e6
crypto: sun8i-ss - do not use sg_dma_len before calling DMA functions

[ Upstream commit 2dfc7cd74a5e062a5405560447517e7aab1c7341 ]

When testing sun8i-ss with multi_v7_defconfig, all CBC algorithm fail crypto
selftests.
This is strange since on sunxi_defconfig, everything was ok.
The problem was in the IV setup loop which never run because sg_dma_len
was 0.

Fixes: 359e893e8af4 ("crypto: sun8i-ss - rework handling of IV")
Signed-off-by: Corentin Labbe <clabbe.montjoie@gmail.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/crypto/allwinner/sun8i-ss/sun8i-ss-cipher.c