Skip to content

Commit 2efba0c

Browse files
dhirschfeld1lucasdemarchi
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 <[email protected]> Reviewed-by: Nirmoy Das <[email protected]> Link: https://patchwork.freedesktop.org/patch/msgid/[email protected] Signed-off-by: Rodrigo Vivi <[email protected]> (cherry picked from commit 249df8c) Signed-off-by: Lucas De Marchi <[email protected]>
1 parent 457ca96 commit 2efba0c

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

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)