]> git.hungrycats.org Git - linux/commit
drm/amdgpu: Fix signedness bug in sdma_v4_0_process_trap_irq()
authorDan Carpenter <dan.carpenter@linaro.org>
Sun, 28 Apr 2024 12:57:00 +0000 (15:57 +0300)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 30 Apr 2024 14:01:53 +0000 (10:01 -0400)
commit6769a23697f17f9bf9365ca8ed62fe37e361a05a
tree099de2ed69e82ebd639b140380752183b8a562aa
parente8a31b4e811a04e5d83dc036fa9542210867b7ca
drm/amdgpu: Fix signedness bug in sdma_v4_0_process_trap_irq()

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>
drivers/gpu/drm/amd/amdgpu/sdma_v4_0.c