Skip to content

Commit 908a28b

Browse files
Xiaojie Yuanalexdeucher
authored andcommitted
drm/amdgpu/gfx10: fix out-of-bound mqd_backup array access
Fixes: 0900a9e ("drm/amdgpu/gfx10: fix mqd backup/restore for gfx rings (v2)") Signed-off-by: Xiaojie Yuan <[email protected]> Reviewed-by: Hawking Zhang <[email protected]> Signed-off-by: Alex Deucher <[email protected]>
1 parent 1e902a6 commit 908a28b

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

drivers/gpu/drm/amd/amdgpu/amdgpu_gfx.c

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -454,8 +454,6 @@ void amdgpu_gfx_mqd_sw_fini(struct amdgpu_device *adev)
454454
}
455455

456456
ring = &adev->gfx.kiq.ring;
457-
if (adev->asic_type >= CHIP_NAVI10 && amdgpu_async_gfx_ring)
458-
kfree(adev->gfx.me.mqd_backup[AMDGPU_MAX_GFX_RINGS - 1]);
459457
kfree(adev->gfx.mec.mqd_backup[AMDGPU_MAX_COMPUTE_RINGS]);
460458
amdgpu_bo_free_kernel(&ring->mqd_obj,
461459
&ring->mqd_gpu_addr,

0 commit comments

Comments
 (0)