AMD General OK
Best Regards, Thomas -----Original Message----- From: Zhou1, Tao <[email protected]> Sent: Tuesday, June 16, 2026 4:58 PM To: Chai, Thomas <[email protected]>; [email protected] Cc: Zhang, Hawking <[email protected]>; Li, Candice <[email protected]> Subject: RE: [PATCH 1/2] drm/amdgpu: add bounds check to prevent array overflow AMD General > -----Original Message----- > From: Chai, Thomas <[email protected]> > Sent: Tuesday, June 16, 2026 4:44 PM > To: [email protected] > Cc: Zhang, Hawking <[email protected]>; Zhou1, Tao > <[email protected]>; Li, Candice <[email protected]>; Chai, Thomas > <[email protected]> > Subject: [PATCH 1/2] drm/amdgpu: add bounds check to prevent array > overflow > > Add bounds check to prevent array overflow. > > Signed-off-by: YiPeng Chai <[email protected]> > --- > drivers/gpu/drm/amd/amdgpu/amdgpu_ras.c | 3 +++ > 1 file changed, 3 insertions(+) > > diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_ras.c > b/drivers/gpu/drm/amd/amdgpu/amdgpu_ras.c > index 94ddb8b98abf..0a2136668b68 100644 > --- a/drivers/gpu/drm/amd/amdgpu/amdgpu_ras.c > +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_ras.c > @@ -5064,6 +5064,9 @@ static void > amdgpu_register_bad_pages_mca_notifier(struct amdgpu_device *adev) > * Use this list instead of mgpu_info to find the amdgpu > * device on which the UMC error was reported. > */ > + if (mce_adev_list.num_gpu >= MAX_GPU_INSTANCE) [Tao] do we need to add warning message for it? > + return; > + > mce_adev_list.devs[mce_adev_list.num_gpu++] = adev; > > /* > -- > 2.43.0
