Skip to content

Commit b5aaa82

Browse files
fcui-amdalexdeucher
authored andcommitted
drm/amdgpu: release xcp_mgr on exit
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>
1 parent bed6bc6 commit b5aaa82

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

drivers/gpu/drm/amd/amdgpu/amdgpu_device.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4807,6 +4807,9 @@ void amdgpu_device_fini_sw(struct amdgpu_device *adev)
48074807
kfree(adev->fru_info);
48084808
adev->fru_info = NULL;
48094809

4810+
kfree(adev->xcp_mgr);
4811+
adev->xcp_mgr = NULL;
4812+
48104813
px = amdgpu_device_supports_px(adev_to_drm(adev));
48114814

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

0 commit comments

Comments
 (0)