diff options
author | Navid Emamdoost <navid.emamdoost@gmail.com> | 2020-06-14 02:12:29 -0500 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2020-09-03 11:19:23 +0200 |
commit | 6d0364cd0f378fdb5d4a707f0a6c3111bcea7b32 (patch) | |
tree | 25a30f7e228f66b7fc13612c88fe2a5868b5e254 /drivers/gpu/drm/amd/amdgpu/amdgpu_ctx.c | |
parent | 87fe5b5f59beeec0780990a1ea2ebc857d17e965 (diff) |
drm/amdgpu: fix ref count leak in amdgpu_driver_open_kms
[ Upstream commit 9ba8923cbbe11564dd1bf9f3602add9a9cfbb5c6 ]
in amdgpu_driver_open_kms 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>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_ctx.c')
0 files changed, 0 insertions, 0 deletions