Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
drm/amd/display: fix ref count leak in amdgpu_drm_ioctl
[ Upstream commit 5509ac6 ] in amdgpu_drm_ioctl 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>
- Loading branch information