Files
linux/drivers/gpu/drm/tegra
Qinglang Miao dcdfe2712b drm/tegra: Fix reference leak when pm_runtime_get_sync() fails
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 on failure. Forgetting to put the reference again will result in
a leak.

Replace it with pm_runtime_resume_and_get() to keep the usage counter
balanced.

Fixes: fd67e9c6ed ("drm/tegra: Do not implement runtime PM")
Reported-by: Hulk Robot <hulkci@huawei.com>
Signed-off-by: Qinglang Miao <miaoqinglang@huawei.com>
Signed-off-by: Thierry Reding <treding@nvidia.com>
2021-01-15 17:24:51 +01:00
..
2019-10-28 11:18:54 +01:00
2020-04-17 17:16:22 +02:00
2020-09-17 12:30:11 +02:00
2020-11-02 11:17:54 +01:00
2019-10-28 11:18:38 +01:00
2020-01-10 16:37:43 +01:00
2019-10-28 11:18:54 +01:00