]> git.baikalelectronics.ru Git - kernel.git/commit
crypto: caam - free resources in case caam_rng registration failed
authorIuliana Prodan <iuliana.prodan@nxp.com>
Wed, 31 Jul 2019 13:08:12 +0000 (16:08 +0300)
committerHerbert Xu <herbert@gondor.apana.org.au>
Fri, 9 Aug 2019 05:11:50 +0000 (15:11 +1000)
commit95c63fc2d1b2144ae3ec41638e185d2dd47110f9
tree5b4b6722b254f2b9a04abec90a17fa53f7d6e242
parentea4a254ada92b35f50116f3cd2d41eba41c551b6
crypto: caam - free resources in case caam_rng registration failed

Check the return value of the hardware registration for caam_rng and free
resources in case of failure.

Fixes: 9e88ed6f08b2 ("crypto: caam - hwrng support")
Signed-off-by: Iuliana Prodan <iuliana.prodan@nxp.com>
Reviewed-by: Horia Geanta <horia.geanta@nxp.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
drivers/crypto/caam/caamrng.c