From: jsg Date: Thu, 30 Nov 2023 02:54:25 +0000 (+0000) Subject: drm/amdgpu: fix error handling in amdgpu_bo_list_get() X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=73c9df908fdcfbb0f3fd09bfc2778c6d68050714;p=openbsd drm/amdgpu: fix error handling in amdgpu_bo_list_get() From Christian Koenig c52aac5884bc58e304d4c9cb8441baf8443ea189 in linux-6.1.y/6.1.64 12f76050d8d4d10dab96333656b821bd4620d103 in mainline linux --- diff --git a/sys/dev/pci/drm/amd/amdgpu/amdgpu_bo_list.c b/sys/dev/pci/drm/amd/amdgpu/amdgpu_bo_list.c index 0d1f165ac5b..6f73b447473 100644 --- a/sys/dev/pci/drm/amd/amdgpu/amdgpu_bo_list.c +++ b/sys/dev/pci/drm/amd/amdgpu/amdgpu_bo_list.c @@ -183,6 +183,7 @@ int amdgpu_bo_list_get(struct amdgpu_fpriv *fpriv, int id, } rcu_read_unlock(); + *result = NULL; return -ENOENT; }