From 73c9df908fdcfbb0f3fd09bfc2778c6d68050714 Mon Sep 17 00:00:00 2001 From: jsg Date: Thu, 30 Nov 2023 02:54:25 +0000 Subject: [PATCH] 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 --- sys/dev/pci/drm/amd/amdgpu/amdgpu_bo_list.c | 1 + 1 file changed, 1 insertion(+) 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; } -- 2.20.1