Commit 28b996ce authored by Maciej Patelczyk's avatar Maciej Patelczyk Committed by Niranjana Vishwanathapura
Browse files

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 fbeaad07 ("drm/xe: Create LRC BO without VM")

Fixes: fbeaad07 ("drm/xe: Create LRC BO without VM")
Signed-off-by: default avatarMaciej Patelczyk <maciej.patelczyk@intel.com>
Reviewed-by: default avatarJonathan Cavitt <jonathan.cavitt@intel.com>
Reviewed-by: default avatarMatthew Brost <matthew.brost@intel.com>
Signed-off-by: default avatarNiranjana Vishwanathapura <niranjana.vishwanathapura@intel.com>
Link: https://lore.kernel.org/r/20250530135627.2821612-1-maciej.patelczyk@intel.com
parent 399c5f54
Loading
Loading
Loading
Loading
+1 −5
Original line number Diff line number Diff line
@@ -114,7 +114,6 @@ static struct xe_exec_queue *__xe_exec_queue_alloc(struct xe_device *xe,

static int __xe_exec_queue_init(struct xe_exec_queue *q)
{
	struct xe_vm *vm = q->vm;
	int i, err;
	u32 flags = 0;

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

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

	return 0;

err_unlock:
	if (vm)
		xe_vm_unlock(vm);
err_lrc:
	for (i = i - 1; i >= 0; --i)
		xe_lrc_put(q->lrc[i]);