mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2026-07-08 18:13:59 +02:00
73043d2967
commit65bce27ea6upstream. As pointed out by SDL, the previous condition may be vulnerable to overflow. Fixes:0a78f2bac1("drm/amdgpu/vcn4: Prevent OOB reads when parsing dec msg") Cc: SDL <sdl@nppct.ru> Signed-off-by: Benjamin Cheng <benjamin.cheng@amd.com> Reviewed-by: Ruijing Dong <ruijing.dong@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com> (cherry picked from commit3c5367d950) Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>