drm/amdgpu: fix error handling in amdgpu_bo_list_get()
authorjsg <jsg@openbsd.org>
Thu, 30 Nov 2023 02:54:25 +0000 (02:54 +0000)
committerjsg <jsg@openbsd.org>
Thu, 30 Nov 2023 02:54:25 +0000 (02:54 +0000)
From Christian Koenig
c52aac5884bc58e304d4c9cb8441baf8443ea189 in linux-6.1.y/6.1.64
12f76050d8d4d10dab96333656b821bd4620d103 in mainline linux

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

index 0d1f165..6f73b44 100644 (file)
@@ -183,6 +183,7 @@ int amdgpu_bo_list_get(struct amdgpu_fpriv *fpriv, int id,
        }
 
        rcu_read_unlock();
+       *result = NULL;
        return -ENOENT;
 }