Re: [PATCH next] drm/amdgpu: Fix off by one in current_memory_partition_show()

2024-10-14 Thread Alex Deucher
Applied. Thanks! Alex On Thu, Oct 10, 2024 at 11:18 PM Lazar, Lijo wrote: > > > > On 10/11/2024 12:05 AM, Dan Carpenter wrote: > > The >= ARRAY_SIZE() should be > ARRAY_SIZE() to prevent an out of > > bounds read. > > > > Fixes: 012be6f22c01 ("drm/amdgpu: Add sysfs interfaces for NPS mode") > >

Re: [PATCH next] drm/amdgpu: Fix off by one in current_memory_partition_show()

2024-10-10 Thread Lazar, Lijo
On 10/11/2024 12:05 AM, Dan Carpenter wrote: > The >= ARRAY_SIZE() should be > ARRAY_SIZE() to prevent an out of > bounds read. > > Fixes: 012be6f22c01 ("drm/amdgpu: Add sysfs interfaces for NPS mode") > Signed-off-by: Dan Carpenter Reviewed-by: Lijo Lazar Thanks, Lijo > --- > drivers/gpu

[PATCH next] drm/amdgpu: Fix off by one in current_memory_partition_show()

2024-10-10 Thread Dan Carpenter
The >= ARRAY_SIZE() should be > ARRAY_SIZE() to prevent an out of bounds read. Fixes: 012be6f22c01 ("drm/amdgpu: Add sysfs interfaces for NPS mode") Signed-off-by: Dan Carpenter --- drivers/gpu/drm/amd/amdgpu/amdgpu_gmc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/driver