drm/amdgpu/gfx9: fix IP dump alloc ordering

If gfx sysfs init fails, we may leak the ip dump
allocations.

Reviewed-by: Mukul Joshi <mukul.joshi@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
This commit is contained in:
Alex Deucher
2026-07-07 13:53:26 -04:00
parent b3f2f83e84
commit c8a1066ccc

View File

@@ -2442,12 +2442,12 @@ static int gfx_v9_0_sw_init(struct amdgpu_ip_block *ip_block)
return -EINVAL;
}
gfx_v9_0_alloc_ip_dump(adev);
r = amdgpu_gfx_sysfs_init(adev);
if (r)
return r;
gfx_v9_0_alloc_ip_dump(adev);
return 0;
}