]> www.infradead.org Git - users/dwmw2/linux.git/commit
drm/amdgpu: fix out of bounds access in gfx10 during ip dump
authorSunil Khatri <sunil.khatri@amd.com>
Tue, 2 Jul 2024 08:16:50 +0000 (13:46 +0530)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 2 Jul 2024 22:04:49 +0000 (18:04 -0400)
commit425c4a6f8ba62f77669a6a10ce9678153dee3e03
tree0dcd2f2a0a575c86423ab471b9f508e4168d29f8
parente931ab3eea505535abd0369c5da27e3a5d0057bb
drm/amdgpu: fix out of bounds access in gfx10 during ip dump

During ip dump in gfx10 the index variable is reused but is
not reinitialized to 0 and this causes the index calculation
to be wrong and access out of bound access.

Acked-by: Christian König <christian.koenig@amd.com>
Signed-off-by: Sunil Khatri <sunil.khatri@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/gfx_v10_0.c