Skip to content
This repository was archived by the owner on Nov 8, 2023. It is now read-only.

Commit 6c5cd08

Browse files
nvishwa1Thomas Hellström
authored andcommitted
drm/xe: Properly handle alloc_guc_id() failure
Release the submission_state lock if alloc_guc_id() fails. v2: Add Fixes tag and CC stable kernel Fixes: dd08ebf ("drm/xe: Introduce a new DRM driver for Intel GPUs") Cc: <stable@vger.kernel.org> # v6.8+ Signed-off-by: Niranjana Vishwanathapura <niranjana.vishwanathapura@intel.com> Reviewed-by: Nirmoy Das <nirmoy.das@intel.com> Reviewed-by: Matthew Brost <matthew.brost@intel.com> Signed-off-by: José Roberto de Souza <jose.souza@intel.com> Link: https://patchwork.freedesktop.org/patch/msgid/20240521201711.4934-1-niranjana.vishwanathapura@intel.com (cherry picked from commit 40672b7) Signed-off-by: Thomas Hellström <thomas.hellstrom@linux.intel.com>
1 parent c8ea2c3 commit 6c5cd08

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

drivers/gpu/drm/xe/xe_guc_submit.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1240,6 +1240,7 @@ static int guc_exec_queue_init(struct xe_exec_queue *q)
12401240
return 0;
12411241

12421242
err_entity:
1243+
mutex_unlock(&guc->submission_state.lock);
12431244
xe_sched_entity_fini(&ge->entity);
12441245
err_sched:
12451246
xe_sched_fini(&ge->sched);

0 commit comments

Comments
 (0)