mirror of
https://github.com/hardkernel/linux.git
synced 2026-04-01 18:53:02 +09:00
[ Upstream commitc59a1d4167] Check the return value of the hardware registration for caam_rng and free resources in case of failure. Fixes:e24f7c9e87("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> Signed-off-by: Sasha Levin <sashal@kernel.org>