summaryrefslogtreecommitdiff
path: root/scripts/Makefile.thinlto
diff options
context:
space:
mode:
authorRuoyu Wang <ruoyuw560@gmail.com>2026-08-14 21:39:33 +0800
committerHerbert Xu <herbert@gondor.apana.org.au>2026-09-04 19:49:32 +1000
commit58d27c41542be6c40edac4f91f35a1dd8bf0d2c2 (patch)
tree0494e11a3c57a581735ede244d4d3a4337280577 /scripts/Makefile.thinlto
parent3244eef8b5cf120ec5428b2b8172c7a87bc64862 (diff)
downloadlinux-next-58d27c41542be6c40edac4f91f35a1dd8bf0d2c2.tar.gz
linux-next-58d27c41542be6c40edac4f91f35a1dd8bf0d2c2.zip
hwrng: cctrng - Fix runtime PM usage counter leak
pm_runtime_get_sync() increments the device usage counter even when runtime resume fails. cctrng_read() propagates errors from cc_trng_pm_get() without scheduling the work that later drops the counter, so a clock or reset-completion failure in cctrng_resume() leaves the counter elevated. Use pm_runtime_resume_and_get(), which drops the usage counter when resume fails and returns zero on success. This preserves the existing success path while balancing the error path. This issue was found by a static analysis checker and confirmed by manual source review. Fixes: a583ed310bb6 ("hwrng: cctrng - introduce Arm CryptoCell driver") Signed-off-by: Ruoyu Wang <ruoyuw560@gmail.com> Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Diffstat (limited to 'scripts/Makefile.thinlto')
0 files changed, 0 insertions, 0 deletions