artulab
projects
/
openbsd
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
55b1fa0
)
drm/amdgpu: Fix leak when GPU memory allocation fails
author
jsg
<jsg@openbsd.org>
Mon, 6 May 2024 02:12:36 +0000
(
02:12
+0000)
committer
jsg
<jsg@openbsd.org>
Mon, 6 May 2024 02:12:36 +0000
(
02:12
+0000)
From Mukul Joshi
d7d7284c2a7c67ea5f07eb28d8c2ea0f3ee4b86b
in linux-6.6.y/6.6.30
25e9227c6afd200bed6774c866980b8e36d033af
in mainline linux
sys/dev/pci/drm/amd/amdgpu/amdgpu_amdkfd_gpuvm.c
patch
|
blob
|
history
diff --git
a/sys/dev/pci/drm/amd/amdgpu/amdgpu_amdkfd_gpuvm.c
b/sys/dev/pci/drm/amd/amdgpu/amdgpu_amdkfd_gpuvm.c
index
d475551
..
6044d3f
100644
(file)
--- a/
sys/dev/pci/drm/amd/amdgpu/amdgpu_amdkfd_gpuvm.c
+++ b/
sys/dev/pci/drm/amd/amdgpu/amdgpu_amdkfd_gpuvm.c
@@
-1785,6
+1785,7
@@
err_node_allow:
err_bo_create:
amdgpu_amdkfd_unreserve_mem_limit(adev, aligned_size, flags, xcp_id);
err_reserve_limit:
+ amdgpu_sync_free(&(*mem)->sync);
mutex_destroy(&(*mem)->lock);
if (gobj)
drm_gem_object_put(gobj);