]> www.infradead.org Git - users/jedix/linux-maple.git/commit
drm/amdgpu: Fix out-of-bounds write warning
authorMa Jun <Jun.Ma2@amd.com>
Thu, 25 Apr 2024 06:00:17 +0000 (14:00 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 8 May 2024 19:17:05 +0000 (15:17 -0400)
commitbe1684930f5262a622d40ce7a6f1423530d87f89
tree1bb7ea659489f430d1b0998e70f90951fe14577f
parenta641c25fa45c95b4eaa036beba4624956a8fd461
drm/amdgpu: Fix out-of-bounds write warning

Check the ring type value to fix the out-of-bounds
write warning

Signed-off-by: Ma Jun <Jun.Ma2@amd.com>
Suggested-by: Christian König <christian.koenig@amd.com>
Reviewed-by: Tim Huang <Tim.Huang@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/amdgpu_ring.c