]> www.infradead.org Git - users/jedix/linux-maple.git/commit
drm/amdgpu: fix mc_data out-of-bounds read warning
authorTim Huang <Tim.Huang@amd.com>
Mon, 6 May 2024 08:30:01 +0000 (16:30 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 8 May 2024 19:17:07 +0000 (15:17 -0400)
commit51dfc0a4d609fe700750a62f41447f01b8c9ea50
treebdc11b0b02e18b61fd0991cd36192eb4c4499fa2
parent8944acd0f9db33e17f387fdc75d33bb473d7936f
drm/amdgpu: fix mc_data out-of-bounds read warning

Clear warning that read mc_data[i-1] 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_atombios.c