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: cctrng - Add missing clk_disable_unprepare in cctrng_resume

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

Fixes: a583ed310bb6 ("hwrng: cctrng - introduce Arm CryptoCell driver")
Cc: <stable@vger.kernel.org>
Signed-off-by: Gaosheng Cui <cuigaosheng1@huawei.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>

authored by

Gaosheng Cui and committed by
Herbert Xu
4b7acc85 d57e2f7c

+1
+1
drivers/char/hw_random/cctrng.c
··· 622 622 /* wait for Cryptocell reset completion */ 623 623 if (!cctrng_wait_for_reset_completion(drvdata)) { 624 624 dev_err(dev, "Cryptocell reset not completed"); 625 + clk_disable_unprepare(drvdata->clk); 625 626 return -EBUSY; 626 627 } 627 628