]> git.ipfire.org Git - thirdparty/linux.git/commit
drm/amdgpu/gmc9.0: add bounds checking for cid
authorAlex Deucher <alexander.deucher@amd.com>
Mon, 16 Mar 2026 19:51:08 +0000 (15:51 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 17 Mar 2026 16:19:23 +0000 (12:19 -0400)
commitf39e1270277f4b06db0b2c6ec9405b6dd766fb13
treee811ff86bb96866f8937262b886631ab032b34a9
parent9c52f49545478aa47769378cd0b53c5005d6a846
drm/amdgpu/gmc9.0: add bounds checking for cid

The value should never exceed the array size as those
are the only values the hardware is expected to return,
but add checks anyway.

Cc: Benjamin Cheng <benjamin.cheng@amd.com>
Reviewed-by: Benjamin Cheng <benjamin.cheng@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
(cherry picked from commit e14d468304832bcc4a082d95849bc0a41b18ddea)
Cc: stable@vger.kernel.org
drivers/gpu/drm/amd/amdgpu/gmc_v9_0.c