drm/amdgpu: fix ucode out-of-bounds read warning
authorTim Huang <Tim.Huang@amd.com>
Mon, 6 May 2024 08:21:00 +0000 (16:21 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 8 May 2024 19:17:07 +0000 (15:17 -0400)
commit8944acd0f9db33e17f387fdc75d33bb473d7936f
tree973935f8a93e332448716badaa2767c3b92d3938
parentf683f24093dd94a831085fe0ea8e9dc4c6c1a2d1
drm/amdgpu: fix ucode out-of-bounds read warning

Clear warning that read ucode[] may out-of-bounds.

Signed-off-by: Tim Huang <Tim.Huang@amd.com>
Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/amdgpu_cgs.c