crypto: caam - Fix error handling in caam_rng_init()
authorFabio Estevam <fabio.estevam@freescale.com>
Wed, 12 Aug 2015 14:48:42 +0000 (11:48 -0300)
committerHerbert Xu <herbert@gondor.apana.org.au>
Thu, 13 Aug 2015 07:13:29 +0000 (15:13 +0800)
commitac8ad30777467c5258c52aa4899a8a07a3e56b54
tree10b777c916d2a8f6ecce0fb0d83177e17fff366f
parent8669f34e122bad56e4d3ecde5f4720c40261bf4c
crypto: caam - Fix error handling in caam_rng_init()

In the error paths we should free the resources that were
previously acquired, so fix it accordingly.

Signed-off-by: Fabio Estevam <fabio.estevam@freescale.com>
Reviewed-by: Horia Geant? <horia.geanta@freescale.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
drivers/crypto/caam/caamrng.c