From: Flora Cui Date: Fri, 14 Mar 2025 02:27:55 +0000 (+0800) Subject: drm/amdgpu: release xcp_mgr on exit X-Git-Tag: v6.15-rc1~120^2~1^2~46 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=b5aaa82e2b12feaaa6958f7fa0917ddcc03c24ee;p=thirdparty%2Fkernel%2Flinux.git drm/amdgpu: release xcp_mgr on exit Free on driver cleanup. Reviewed-by: Lijo Lazar Signed-off-by: Flora Cui Signed-off-by: Alex Deucher --- diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_device.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_device.c index cc0b6c70fcb8f..e63bcd5edab97 100644 --- a/drivers/gpu/drm/amd/amdgpu/amdgpu_device.c +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_device.c @@ -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) &&