Searched hist:dcdfe2712b68f1e9dbf4f1a96ad59b80e5cc0ef7 (Results 1 – 6 of 6) sorted by relevance
/linux/drivers/gpu/drm/tegra/ |
H A D | vic.c | diff dcdfe2712b68f1e9dbf4f1a96ad59b80e5cc0ef7 Tue Dec 01 13:56:31 CET 2020 Qinglang Miao <miaoqinglang@huawei.com> 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: fd67e9c6ed5a ("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>
|
H A D | hub.c | diff dcdfe2712b68f1e9dbf4f1a96ad59b80e5cc0ef7 Tue Dec 01 13:56:31 CET 2020 Qinglang Miao <miaoqinglang@huawei.com> 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: fd67e9c6ed5a ("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>
|
H A D | dsi.c | diff dcdfe2712b68f1e9dbf4f1a96ad59b80e5cc0ef7 Tue Dec 01 13:56:31 CET 2020 Qinglang Miao <miaoqinglang@huawei.com> 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: fd67e9c6ed5a ("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>
|
H A D | hdmi.c | diff dcdfe2712b68f1e9dbf4f1a96ad59b80e5cc0ef7 Tue Dec 01 13:56:31 CET 2020 Qinglang Miao <miaoqinglang@huawei.com> 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: fd67e9c6ed5a ("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>
|
H A D | sor.c | diff dcdfe2712b68f1e9dbf4f1a96ad59b80e5cc0ef7 Tue Dec 01 13:56:31 CET 2020 Qinglang Miao <miaoqinglang@huawei.com> 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: fd67e9c6ed5a ("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>
|
H A D | dc.c | diff dcdfe2712b68f1e9dbf4f1a96ad59b80e5cc0ef7 Tue Dec 01 13:56:31 CET 2020 Qinglang Miao <miaoqinglang@huawei.com> 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: fd67e9c6ed5a ("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>
|