commit | 9006d622156a5c4a6699d303472fe24786cd10c9 | [log] [tgz] |
---|---|---|
author | Navid Emamdoost <navid.emamdoost@gmail.com> | Sun Jun 14 02:12:29 2020 -0500 |
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | Thu Sep 03 11:24:19 2020 +0200 |
tree | f38da6b8b235d5d155d0652918c998f7bc506a73 | |
parent | 93d3e58c97741f25c3e6c15e3dd61ab684f72cb2 [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>