]> 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)
committerHerbert Xu <herbert@gondor.apana.org.au>
Fri, 13 Jun 2025 09:26:16 +0000 (17:26 +0800)
commit442134ab30e75b7229c4bfc1ac5641d245cffe27
tree8c5485df078e963aba931520523a3af4ecc064b3
parenta091a58b8a1eba2f243b0c05bcc82bdc2a4a338d
crypto: marvell/cesa - Fix engine load inaccuracy

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>
drivers/crypto/marvell/cesa/cipher.c
drivers/crypto/marvell/cesa/hash.c