]> www.infradead.org Git - users/hch/misc.git/commitdiff
drm/amdgpu: release xcp_mgr on exit
authorFlora Cui <flora.cui@amd.com>
Fri, 14 Mar 2025 02:27:55 +0000 (10:27 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 18 Mar 2025 18:03:47 +0000 (14:03 -0400)
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>
drivers/gpu/drm/amd/amdgpu/amdgpu_device.c

index cc0b6c70fcb8f5b411c78bd244c318064a3ee06a..e63bcd5edab9787277f38e04e4c902fe511d6435 100644 (file)
@@ -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) &&