diff options
author | Navid Emamdoost <navid.emamdoost@gmail.com> | 2020-06-14 02:12:29 -0500 |
---|---|---|
committer | Alex Deucher <alexander.deucher@amd.com> | 2020-07-01 01:59:22 -0400 |
commit | 9ba8923cbbe11564dd1bf9f3602add9a9cfbb5c6 (patch) | |
tree | 4b7164d53dc68c3ad434d0af84b6fc8d40647f56 /drivers/gpu/drm/amd/amdgpu/amdgpu_display.c | |
parent | 6f2e8acdb48ed166b65d47837c31b177460491ec (diff) |
drm/amdgpu: fix ref count leak in amdgpu_driver_open_kms
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>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_display.c')
0 files changed, 0 insertions, 0 deletions