summaryrefslogtreecommitdiff
path: root/drivers/gpu/drm/amd/amdgpu/amdgpu_userqueue.c
diff options
context:
space:
mode:
authorJesse Zhang <jesse.zhang@amd.com>2025-04-11 16:22:27 +0800
committerAlex Deucher <alexander.deucher@amd.com>2025-04-11 17:02:17 -0400
commitcf93f10101f958a95023ed1b63d631c8112b17ca (patch)
treeb1dd4f4a6e958cf912d9a11eddcbf6c82a4da4f6 /drivers/gpu/drm/amd/amdgpu/amdgpu_userqueue.c
parent4172b556fd5bdfdf9b2d1e42da39df6ce99ee989 (diff)
drm/amd/amdgpu: Fix out of bounds warning in amdgpu_hw_ip_info
Fix an array index out of bounds warning in the DMA IP case of amdgpu_hw_ip_info() where it was incorrectly checking adev->gfx.gfx_ring[i].no_user_submission instead of adev->sdma.instance[i].ring.no_user_submission. The mismatch caused UBSAN to report an array bounds violation since it was accessing the GFX ring array with SDMA instance indices. Fixes: 4310acd4464b ("drm/amdgpu: add ring flag for no user submissions") Reviewed-by: Alex Deucher <alexander.deucher@amd.com> Signed-off-by: Jesse Zhang <jesse.zhang@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_userqueue.c')
0 files changed, 0 insertions, 0 deletions