Skip to content

Commit

Permalink
drm/amdgpu: release xcp_mgr on exit
Browse files Browse the repository at this point in the history
Free on driver cleanup.

Reviewed-by: Lijo Lazar <lijo.lazar@amd.com>
Signed-off-by: Flora Cui <flora.cui@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
  • Loading branch information
Flora Cui authored and Alex Deucher committed Mar 18, 2025
1 parent bed6bc6 commit b5aaa82
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions drivers/gpu/drm/amd/amdgpu/amdgpu_device.c
Original file line number Diff line number Diff line change
Expand Up @@ -4807,6 +4807,9 @@ void amdgpu_device_fini_sw(struct amdgpu_device *adev)
kfree(adev->fru_info);
adev->fru_info = NULL;

kfree(adev->xcp_mgr);
adev->xcp_mgr = NULL;

px = amdgpu_device_supports_px(adev_to_drm(adev));

if (px || (!dev_is_removable(&adev->pdev->dev) &&
Expand Down

0 comments on commit b5aaa82

Please sign in to comment.