Skip to content

Commit 28b996c

Browse files
mpatelcznvishwa1
authored andcommitted
drm/xe: remove unmatched xe_vm_unlock() from __xe_exec_queue_init()
There is unmatched xe_vm_unlock() in the __xe_exec_queue_init(). Leftover from commit fbeaad0 ("drm/xe: Create LRC BO without VM") Fixes: fbeaad0 ("drm/xe: Create LRC BO without VM") Signed-off-by: Maciej Patelczyk <maciej.patelczyk@intel.com> Reviewed-by: Jonathan Cavitt <jonathan.cavitt@intel.com> Reviewed-by: Matthew Brost <matthew.brost@intel.com> Signed-off-by: Niranjana Vishwanathapura <niranjana.vishwanathapura@intel.com> Link: https://lore.kernel.org/r/20250530135627.2821612-1-maciej.patelczyk@intel.com
1 parent 399c5f5 commit 28b996c

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

drivers/gpu/drm/xe/xe_exec_queue.c

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,6 @@ static struct xe_exec_queue *__xe_exec_queue_alloc(struct xe_device *xe,
114114

115115
static int __xe_exec_queue_init(struct xe_exec_queue *q)
116116
{
117-
struct xe_vm *vm = q->vm;
118117
int i, err;
119118
u32 flags = 0;
120119

@@ -136,7 +135,7 @@ static int __xe_exec_queue_init(struct xe_exec_queue *q)
136135
q->lrc[i] = xe_lrc_create(q->hwe, q->vm, SZ_16K, q->msix_vec, flags);
137136
if (IS_ERR(q->lrc[i])) {
138137
err = PTR_ERR(q->lrc[i]);
139-
goto err_unlock;
138+
goto err_lrc;
140139
}
141140
}
142141

@@ -146,9 +145,6 @@ static int __xe_exec_queue_init(struct xe_exec_queue *q)
146145

147146
return 0;
148147

149-
err_unlock:
150-
if (vm)
151-
xe_vm_unlock(vm);
152148
err_lrc:
153149
for (i = i - 1; i >= 0; --i)
154150
xe_lrc_put(q->lrc[i]);

0 commit comments

Comments
 (0)