Re: [PATCH] drm/tegra: fix reference leak when pm_runtime_get_sync fails

2021-01-15 Thread Thierry Reding
On Tue, Dec 01, 2020 at 08:56:31PM +0800, Qinglang Miao wrote: > The PM reference count is not expected to be incremented on > return in these tegra functions. > > However, pm_runtime_get_sync will increment the PM reference > count even failed. Forgetting to putting operation will result > in a

[PATCH] drm/tegra: fix reference leak when pm_runtime_get_sync fails

2020-12-02 Thread Qinglang Miao
The PM reference count is not expected to be incremented on return in these tegra functions. However, pm_runtime_get_sync will increment the PM reference count even failed. Forgetting to putting operation will result in a reference leak here. Replace it with pm_runtime_resume_and_get to keep