Skip to content
Commit dcdfe271 authored by Qinglang Miao's avatar Qinglang Miao Committed by Thierry Reding
Browse files

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: fd67e9c6 ("drm/tegra: Do not implement runtime PM")
Reported-by: default avatarHulk Robot <hulkci@huawei.com>
Signed-off-by: default avatarQinglang Miao <miaoqinglang@huawei.com>
Signed-off-by: default avatarThierry Reding <treding@nvidia.com>
parent 3ef170c2
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment