]> git.baikalelectronics.ru Git - kernel.git/commit
drm/amdgpu: fix unsigned variable instance compared to less than zero
authorColin Ian King <colin.king@canonical.com>
Thu, 1 Aug 2019 11:01:45 +0000 (12:01 +0100)
committerAlex Deucher <alexander.deucher@amd.com>
Fri, 2 Aug 2019 15:30:38 +0000 (10:30 -0500)
commit2dfda84085ad868e229336e15bc12fa61756ccb1
tree425d4b9f798e249c4fd9f785eab06bfd5ee49a04
parent73b09c9c3080ce6ad2fef454293a251a22d46155
drm/amdgpu: fix unsigned variable instance compared to less than zero

Currenly the error check on variable instance is always false because
it is a uint32_t type and this is never less than zero. Fix this by
making it an int type.

Addresses-Coverity: ("Unsigned compared against 0")
Fixes: da1809da5b9b ("drm/amdgpu: update more sdma instances irq support")
Signed-off-by: Colin Ian King <colin.king@canonical.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/sdma_v4_0.c