]> git.ipfire.org Git - thirdparty/kernel/stable.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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 29 May 2025 09:12:36 +0000 (11:12 +0200)
[ Upstream commit b5aaa82e2b12feaaa6958f7fa0917ddcc03c24ee ]

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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/gpu/drm/amd/amdgpu/amdgpu_device.c

index c00a01c62724a9384e7c45e81abc00b2bab98466..ea50f82b547d9032b2001cabfdc28e85d3f9a353 100644 (file)
@@ -4778,6 +4778,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) &&