commit | d6c64bb030bd1acd22d06889b3084d35455c6500 | [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:21:16 2020 +0200 |
tree | 0702fa0379369b06ca3429e92586edff68fc7a1d | |
parent | 4daf2296e42f67a9eff15a4f346bcaac984f62e2 [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>