Commit b5aaa82e authored by Flora Cui's avatar Flora Cui Committed by Alex Deucher
Browse files

drm/amdgpu: release xcp_mgr on exit



Free on driver cleanup.

Reviewed-by: default avatarLijo Lazar <lijo.lazar@amd.com>
Signed-off-by: default avatarFlora Cui <flora.cui@amd.com>
Signed-off-by: default avatarAlex Deucher <alexander.deucher@amd.com>
parent bed6bc66
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -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) &&