mirror of
https://github.com/torvalds/linux.git
synced 2026-09-23 13:14:02 +02:00
drm/amdgpu/gfx11: 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:
parent
c2b2188662
commit
601f7a1180
|
|
@ -1920,12 +1920,12 @@ static int gfx_v11_0_sw_init(struct amdgpu_ip_block *ip_block)
|
|||
return -EINVAL;
|
||||
}
|
||||
|
||||
gfx_v11_0_alloc_ip_dump(adev);
|
||||
|
||||
r = amdgpu_gfx_sysfs_init(adev);
|
||||
if (r)
|
||||
return r;
|
||||
|
||||
gfx_v11_0_alloc_ip_dump(adev);
|
||||
|
||||
adev->gfx.me.use_mmio_for_reset = false;
|
||||
adev->gfx.mec.use_mmio_for_reset = true;
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user