From: jsg Date: Mon, 29 Jul 2024 01:26:15 +0000 (+0000) Subject: drm/amdgpu: Fix signedness bug in sdma_v4_0_process_trap_irq() X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=fc16a34ede2b1cb46bc84f7eb14e19f9d1139e8a;p=openbsd drm/amdgpu: Fix signedness bug in sdma_v4_0_process_trap_irq() From Dan Carpenter 4edb0a84e6b32e75dc9bd6dd085b2c2ff19ec287 in linux-6.6.y/6.6.43 6769a23697f17f9bf9365ca8ed62fe37e361a05a in mainline linux --- diff --git a/sys/dev/pci/drm/amd/amdgpu/sdma_v4_0.c b/sys/dev/pci/drm/amd/amdgpu/sdma_v4_0.c index b5d62cef573..a18d5595d42 100644 --- a/sys/dev/pci/drm/amd/amdgpu/sdma_v4_0.c +++ b/sys/dev/pci/drm/amd/amdgpu/sdma_v4_0.c @@ -2027,7 +2027,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);