drm/amdgpu: Fix signedness bug in sdma_v4_0_process_trap_irq()
authorjsg <jsg@openbsd.org>
Mon, 29 Jul 2024 01:26:15 +0000 (01:26 +0000)
committerjsg <jsg@openbsd.org>
Mon, 29 Jul 2024 01:26:15 +0000 (01:26 +0000)
From Dan Carpenter
4edb0a84e6b32e75dc9bd6dd085b2c2ff19ec287 in linux-6.6.y/6.6.43
6769a23697f17f9bf9365ca8ed62fe37e361a05a in mainline linux

sys/dev/pci/drm/amd/amdgpu/sdma_v4_0.c

index b5d62ce..a18d559 100644 (file)
@@ -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);