]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
crypto: ixp4xx - Fix error handling path in 'aead_perform()'
authorHerbert Xu <herbert@gondor.apana.org.au>
Wed, 2 Aug 2017 08:40:47 +0000 (16:40 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 25 Aug 2017 00:15:00 +0000 (17:15 -0700)
commitf1615538cd1c9d3effeb52751b71a9bc0ede8ecd
tree2d421f14d2211a3137e2b3ba983d19d8f5f467d3
parent0a76684da5c25c9b5a7bde5c44b386fd31995f9d
crypto: ixp4xx - Fix error handling path in 'aead_perform()'

commit 28389575a8cf933a5f3c378556b9f4d3cce0efd2 upstream.

In commit 0f987e25cb8a, the source processing has been moved in front of
the destination processing, but the error handling path has not been
modified accordingly.
Free resources in the correct order to avoid some leaks.

Fixes: 0f987e25cb8a ("crypto: ixp4xx - Fix false lastlen uninitialised warning")
Reported-by: Christophe JAILLET <christophe.jaillet@wanadoo.fr>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Reviewed-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/crypto/ixp4xx_crypto.c