summaryrefslogtreecommitdiff
path: root/drivers/gpu/drm/amd/amdgpu/amdgpu_pm.c
diff options
context:
space:
mode:
authorAlex Deucher <alexander.deucher@amd.com>2020-06-17 21:30:17 +0300
committerAlex Deucher <alexander.deucher@amd.com>2020-07-01 08:59:23 +0300
commit9eee152aab56d374edb9ad21b3db05f5cdda2fe6 (patch)
tree5fe46bce124a85afab3cfc3dc779baf9959b686c /drivers/gpu/drm/amd/amdgpu/amdgpu_pm.c
parentdfd84d902b078faf511e91158ee8db4c2e055e42 (diff)
downloadlinux-9eee152aab56d374edb9ad21b3db05f5cdda2fe6.tar.xz
drm/amdgpu/debugfs: fix ref count leak when pm_runtime_get_sync fails
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. Acked-by: Evan Quan <evan.quan@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_pm.c')
0 files changed, 0 insertions, 0 deletions