diff options
author | Jonathan Gray <jsg@cvs.openbsd.org> | 2023-11-30 02:54:26 +0000 |
---|---|---|
committer | Jonathan Gray <jsg@cvs.openbsd.org> | 2023-11-30 02:54:26 +0000 |
commit | af484bb175cab8262114d56bc4dcc58d81b1679c (patch) | |
tree | c927b017913081fad5f236a36d772e0bc530fa6f /sys | |
parent | 2c649a8af756050972d6a5e387b8a92096ec0ce3 (diff) |
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
Diffstat (limited to 'sys')
-rw-r--r-- | sys/dev/pci/drm/amd/amdgpu/amdgpu_bo_list.c | 1 |
1 files changed, 1 insertions, 0 deletions
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; } |