Skip to content

Commit 7c7c5cb

Browse files
mpatelczThomas Hellström
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: 2b0a0ce ("drm/xe: Create LRC BO without VM") Signed-off-by: Maciej Patelczyk <[email protected]> Reviewed-by: Jonathan Cavitt <[email protected]> Reviewed-by: Matthew Brost <[email protected]> Signed-off-by: Niranjana Vishwanathapura <[email protected]> Link: https://lore.kernel.org/r/[email protected] (cherry picked from commit 28b996c) Signed-off-by: Thomas Hellström <[email protected]>
1 parent 2b0a0ce commit 7c7c5cb

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)