Skip to content

Commit 2efba0c

Browse files
dhirschfeld1Lucas De Marchi
authored andcommitted
drm/xe: fix missing 'xe_vm_put'
Fix memleak caused by missing xe_vm_put Fixes: 852856e ("drm/xe: Use reserved copy engine for user binds on faulting devices") Signed-off-by: Dafna Hirschfeld <dhirschfeld@habana.ai> Reviewed-by: Nirmoy Das <nirmoy.das@intel.com> Link: https://patchwork.freedesktop.org/patch/msgid/20240901044227.1177211-1-dhirschfeld@habana.ai Signed-off-by: Rodrigo Vivi <rodrigo.vivi@intel.com> (cherry picked from commit 249df8c) Signed-off-by: Lucas De Marchi <lucas.demarchi@intel.com>
1 parent 457ca96 commit 2efba0c

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

drivers/gpu/drm/xe/xe_exec_queue.c

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -223,8 +223,10 @@ struct xe_exec_queue *xe_exec_queue_create_bind(struct xe_device *xe,
223223
gt->usm.reserved_bcs_instance,
224224
false);
225225

226-
if (!hwe)
226+
if (!hwe) {
227+
xe_vm_put(migrate_vm);
227228
return ERR_PTR(-EINVAL);
229+
}
228230

229231
q = xe_exec_queue_create(xe, migrate_vm,
230232
BIT(hwe->logical_instance), 1, hwe,

0 commit comments

Comments
 (0)