TencentOS-kernel/drivers/gpu
Navid Emamdoost 5658ea0876 drm/amdgpu/display: fix ref count leak when pm_runtime_get_sync fails
[ Upstream commit f79f94765f8c39db0b7dec1d335ab046aac03f20 ]

The call to pm_runtime_get_sync increments the counter even in case of
failure, leading to incorrect ref count.
In case of failure, decrement the ref count before returning.

Signed-off-by: Navid Emamdoost <navid.emamdoost@gmail.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2021-03-16 16:34:48 +08:00
..
drm drm/amdgpu/display: fix ref count leak when pm_runtime_get_sync fails 2021-03-16 16:34:48 +08:00
host1x gpu: host1x: debug: Fix multiple channels emitting messages simultaneously 2021-03-16 16:33:25 +08:00
ipu-v3 gpu: ipu-v3: image-convert: Wait for all EOFs before completing a tile 2021-03-16 16:34:14 +08:00
vga Init Repo base on linux 5.4.32 long term, and add base tlinux kernel interfaces. 2021-03-16 11:01:34 +08:00
Makefile Init Repo base on linux 5.4.32 long term, and add base tlinux kernel interfaces. 2021-03-16 11:01:34 +08:00