Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

hwrng: bcm2835 - Add missing clk_disable_unprepare in bcm2835_rng_init

Add the missing clk_disable_unprepare() before return in
bcm2835_rng_init().

Fixes: e5f9f41d5e62 ("hwrng: bcm2835 - add reset support")
Cc: <stable@vger.kernel.org>
Signed-off-by: Gaosheng Cui <cuigaosheng1@huawei.com>
Reviewed-by: Florian Fainelli <florian.fainelli@broadcom.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>

authored by

Gaosheng Cui and committed by
Herbert Xu
d57e2f7c da4fe681

+3 -1
+3 -1
drivers/char/hw_random/bcm2835-rng.c
··· 94 94 return ret; 95 95 96 96 ret = reset_control_reset(priv->reset); 97 - if (ret) 97 + if (ret) { 98 + clk_disable_unprepare(priv->clk); 98 99 return ret; 100 + } 99 101 100 102 if (priv->mask_interrupts) { 101 103 /* mask the interrupt */