]> 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:05:01 +0000 (12:05 +0200)
commit9d490de297d94d40d80357b34e367bf0284eca12
treeb1d114df5643587aed11fd05845f5a858d4864bc
parent0ed1ab3d0210af7c1fd83d10628fd714240d7b99
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