]> www.infradead.org Git - users/jedix/linux-maple.git/commit
crypto: crypto4xx - Call dma_unmap_page when done
authorHerbert Xu <herbert@gondor.apana.org.au>
Mon, 6 Feb 2023 06:01:53 +0000 (14:01 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 10 Mar 2023 08:33:04 +0000 (09:33 +0100)
commitdfcce7e6948e53f1ee5af2d20ca880dfa727be20
treebd24ef325c1f2198e2ba3c080bc08d084d318395
parent5f14842b64e0fe7247b83fbdd8f9f3a7553f82ed
crypto: crypto4xx - Call dma_unmap_page when done

[ Upstream commit bcdda4301bdc4955d45f7e1ffefb6207967b067e ]

In crypto4xx_cipher_done, we should be unmapping the dst page, not
mapping it.

This was flagged by a sparse warning about the unused addr variable.
While we're at it, also fix a sparse warning regarding the unused
ctx variable in crypto4xx_ahash_done (by actually using it).

Fixes: 049359d65527 ("crypto: amcc - Add crypt4xx driver")
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Tested-by: Christian Lamparter <chunkeey@gmail.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/crypto/amcc/crypto4xx_core.c