Commit 919f9bf9 authored by Ma Jun's avatar Ma Jun Committed by Greg Kroah-Hartman
Browse files

drm/amdgpu: Fix out-of-bounds write warning



[ Upstream commit be168493 ]

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

Signed-off-by: default avatarMa Jun <Jun.Ma2@amd.com>
Suggested-by: default avatarChristian König <christian.koenig@amd.com>
Reviewed-by: default avatarTim Huang <Tim.Huang@amd.com>
Signed-off-by: default avatarAlex Deucher <alexander.deucher@amd.com>
Signed-off-by: default avatarSasha Levin <sashal@kernel.org>
parent 0fcc2412
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment