]> git.baikalelectronics.ru Git - kernel.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)
committerHerbert Xu <herbert@gondor.apana.org.au>
Wed, 9 Aug 2017 12:01:33 +0000 (20:01 +0800)
commitca08ee7cfafec99e52bcc7c1443e2ebded4143cc
treea5279edab102a586cda55f12c628c8455d9c76ab
parentde8eabcc00c2ea1368bb502ae5cd811e5bff6b49
crypto: ixp4xx - Fix error handling path in 'aead_perform()'

In commit 0c161943e890, 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.

Cc: <stable@vger.kernel.org>
Fixes: 0c161943e890 ("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>
drivers/crypto/ixp4xx_crypto.c