Skip to content

Commit b103eec

Browse files
committed
drm/amd/pm: fix missing device_attr cleanup in amdgpu_pm_sysfs_init()
JIRA: https://issues.redhat.com/browse/RHEL-81536 Conflicts: drivers/gpu/drm/amd/pm/amdgpu_pm.c - amdgpu_dpm_is_temp_metrics_supported() does not exist in RHEL-9, so the second part of the stanza was dropped entirely commit 37e3567 Author: Yang Wang <kevinyang.wang@amd.com> Date: Thu Oct 30 13:06:24 2025 +0800 Use the correct label to complete all cleanup work. Fixes: 4d154b1 ("drm/amd/pm: Add support for DPM policies") Fixes: 25e82f2 ("drm/amd/pm: Add temperature metrics sysfs entry") Signed-off-by: Yang Wang <kevinyang.wang@amd.com> Reviewed-by: Lijo Lazar <lijo.lazar@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com> (cherry picked from commit 4c4c138) Signed-off-by: Mark Langsdorf <mlangsdo@redhat.com>
1 parent 8b0efec commit b103eec

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/gpu/drm/amd/pm/amdgpu_pm.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4467,7 +4467,7 @@ int amdgpu_pm_sysfs_init(struct amdgpu_device *adev)
44674467
ret = devm_device_add_group(adev->dev,
44684468
&amdgpu_pm_policy_attr_group);
44694469
if (ret)
4470-
goto err_out0;
4470+
goto err_out1;
44714471
}
44724472

44734473
adev->pm.sysfs_initialized = true;

0 commit comments

Comments
 (0)