drm/amd/pm: fix rpm refcount handling on error
authorPierre-Eric Pelloux-Prayer <pierre-eric.pelloux-prayer@amd.com>
Fri, 26 Jul 2024 09:42:40 +0000 (11:42 +0200)
committerAlex Deucher <alexander.deucher@amd.com>
Mon, 7 Oct 2024 18:02:05 +0000 (14:02 -0400)
commitb0fca3275526db94e64106fa86473bb3a8ea795f
tree53101912bf7bbbcd70b421f3d1687722e2d3cfa4
parente15ec812b52951e9816ae2d47361fe6b82a8ba3b
drm/amd/pm: fix rpm refcount handling on error

pm_runtime_put_autosuspend must be called from all exit paths.

Tested-by: Mario Limonciello <mario.limonciello@amd.com>
Reviewed-by: Kenneth Feng <kenneth.feng@amd.com>
Signed-off-by: Pierre-Eric Pelloux-Prayer <pierre-eric.pelloux-prayer@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/pm/amdgpu_pm.c