RE: [PATCH] drm/amdgpu: add error handle to avoid out-of-bounds

2024-04-24 Thread Ma, Le
[AMD Official Use Only - General] Reviewed-by: Le Ma Thanks for catching. Please populate the fix to sdma_v4_4_2 as well if necessary. > -Original Message- > From: Bob Zhou > Sent: Tuesday, April 23, 2024 5:15 PM > To: amd-gfx@lists.freedesktop.org; Ma, Le > Cc: Deucher, Alexander ;

Re: [PATCH] drm/amdgpu: add error handle to avoid out-of-bounds

2024-04-23 Thread Christian König
Am 23.04.24 um 11:15 schrieb Bob Zhou: if the sdma_v4_0_irq_id_to_seq return -EINVAL, the process should be stop to avoid out-of-bounds read, so directly return -EINVAL. Signed-off-by: Bob Zhou Acked-by: Christian König --- drivers/gpu/drm/amd/amdgpu/sdma_v4_0.c | 3 +++ 1 file changed,