Re: [PATCH -next] hwrng: exynos - fix PM reference leak in exynos_trng_probe()

2021-04-08 Thread Krzysztof Kozlowski
On Fri, 9 Apr 2021 at 08:11, Ye Weihua wrote: > > pm_runtime_get_sync will increment pm usage counter even it failed. > Forgetting to putting operation will result in reference leak here. > Fix it by replacing it with pm_runtime_resume_and_get to keep usage > counter balanced. > > Reported-by: Hul

[PATCH -next] hwrng: exynos - fix PM reference leak in exynos_trng_probe()

2021-04-08 Thread Ye Weihua
pm_runtime_get_sync will increment pm usage counter even it failed. Forgetting to putting operation will result in reference leak here. Fix it by replacing it with pm_runtime_resume_and_get to keep usage counter balanced. Reported-by: Hulk Robot Signed-off-by: Ye Weihua --- drivers/char/hw_rand