Loading
drm/amdgpu: Fix signedness bug in sdma_v4_0_process_trap_irq()
stable inclusion from stable-v5.10.223 commit a5224e2123ce21102f346f518db80f004d5053a7 category: bugfix bugzilla: https://gitee.com/src-openeuler/kernel/issues/IA8AED CVE: NA Reference: https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?h=linux-5.10.y&id=a5224e2123ce21102f346f518db80f004d5053a7 -------------------------------- commit 6769a23697f17f9bf9365ca8ed62fe37e361a05a upstream. The "instance" variable needs to be signed for the error handling to work. Fixes: 8b2faf1a4f3b ("drm/amdgpu: add error handle to avoid out-of-bounds") Reviewed-by:Bob Zhou <bob.zhou@amd.com> Signed-off-by:
Dan Carpenter <dan.carpenter@linaro.org> Signed-off-by:
Alex Deucher <alexander.deucher@amd.com> Cc: Siddh Raman Pant <siddh.raman.pant@oracle.com> Signed-off-by:
Greg Kroah-Hartman <gregkh@linuxfoundation.org> Signed-off-by:
Wenyu Huang <huangwenyu5@huawei.com>