crypto: caam - ensure that we clean up after an error
authorRussell King <rmk+kernel@arm.linux.org.uk>
Mon, 8 Aug 2016 17:04:58 +0000 (18:04 +0100)
committerHerbert Xu <herbert@gondor.apana.org.au>
Tue, 9 Aug 2016 10:47:25 +0000 (18:47 +0800)
commit32686d34f8fb6919df491ddb7ad8a0d6a9164624
treeb61db39490334a3a6f0d060d414b041ed0ecbd25
parent343e44b15ecce6bca4b2caeae613a559e5be2720
crypto: caam - ensure that we clean up after an error

Ensure that we clean up allocations and DMA mappings after encountering
an error rather than just giving up and leaking memory and resources.

Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
drivers/crypto/caam/caamhash.c