On 7/7/2026 2:00 PM, Alex Deucher wrote:
If gfx sysfs init fails, we may leak the ip dump
allocations.
Signed-off-by: Alex Deucher<[email protected]>
Series is:
Reviewed-by:: Mukul Joshi <[email protected]>
---
drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c
b/drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c
index 7e13023c324b9..2202eed327ea1 100644
--- a/drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c
+++ b/drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c
@@ -2441,12 +2441,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;
}