Commit 6769a236 authored by Dan Carpenter's avatar Dan Carpenter Committed by Alex Deucher
Browse files

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: 8b2faf1a ("drm/amdgpu: add error handle to avoid out-of-bounds")
Reviewed-by: default avatarBob Zhou <bob.zhou@amd.com>
Signed-off-by: default avatarDan Carpenter <dan.carpenter@linaro.org>
Signed-off-by: default avatarAlex Deucher <alexander.deucher@amd.com>
parent e8a31b4e
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -2017,7 +2017,7 @@ static int sdma_v4_0_process_trap_irq(struct amdgpu_device *adev,
				      struct amdgpu_irq_src *source,
				      struct amdgpu_iv_entry *entry)
{
	uint32_t instance;
	int instance;

	DRM_DEBUG("IH: SDMA trap\n");
	instance = sdma_v4_0_irq_id_to_seq(entry->client_id);