]> git.baikalelectronics.ru Git - kernel.git/commit
drm/amdgpu: Add missing pm_runtime_put_autosuspend
authorYongzhi Liu <lyz_cs@pku.edu.cn>
Tue, 18 Jan 2022 20:11:51 +0000 (15:11 -0500)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 18 Jan 2022 22:43:36 +0000 (17:43 -0500)
commitadb04fdd635fd936323a6b681bbce5aede3538e5
tree026ef0e2b6fe0d0c302082bccdc5a333b75d4d7c
parentdf846dbaca231633931f55b6976120ace5add7f5
drm/amdgpu: Add missing pm_runtime_put_autosuspend

pm_runtime_get_sync() increments the runtime PM usage counter even
when it returns an error code, thus a matching decrement is needed
on the error handling path to keep the counter balanced.

Signed-off-by: Yongzhi Liu <lyz_cs@pku.edu.cn>
Reviewed-by: Lijo Lazar <lijo.lazar@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/amdgpu_debugfs.c