]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
crypto: marvell/cesa - Fix engine load inaccuracy
authorHerbert Xu <herbert@gondor.apana.org.au>
Thu, 22 May 2025 12:41:28 +0000 (20:41 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 15 Aug 2025 10:08:51 +0000 (12:08 +0200)
commitaff3e6eacef227f0cbc3acfba6744397c4411417
tree8f1c77953b233693b0b670c26a9b1591f2f1dc98
parentbe1e15938a1600908f989b4ff9e7c57bd5946dfe
crypto: marvell/cesa - Fix engine load inaccuracy

[ Upstream commit 442134ab30e75b7229c4bfc1ac5641d245cffe27 ]

If an error occurs during queueing the engine load will never be
decremented.  Fix this by moving the engine load adjustment into
the cleanup function.

Fixes: bf8f91e71192 ("crypto: marvell - Add load balancing between engines")
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/crypto/marvell/cesa/cipher.c
drivers/crypto/marvell/cesa/hash.c