Commit 40672b79 authored by Niranjana Vishwanathapura's avatar Niranjana Vishwanathapura Committed by José Roberto de Souza

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: dd08ebf6 ("drm/xe: Introduce a new DRM driver for Intel GPUs")
Cc: <stable@vger.kernel.org> # v6.8+
Signed-off-by: default avatarNiranjana Vishwanathapura <niranjana.vishwanathapura@intel.com>
Reviewed-by: default avatarNirmoy Das <nirmoy.das@intel.com>
Reviewed-by: default avatarMatthew Brost <matthew.brost@intel.com>
Signed-off-by: default avatarJosé Roberto de Souza <jose.souza@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20240521201711.4934-1-niranjana.vishwanathapura@intel.com
parent 3ec3b427
...@@ -1317,6 +1317,7 @@ static int guc_exec_queue_init(struct xe_exec_queue *q) ...@@ -1317,6 +1317,7 @@ static int guc_exec_queue_init(struct xe_exec_queue *q)
return 0; return 0;
err_entity: err_entity:
mutex_unlock(&guc->submission_state.lock);
xe_sched_entity_fini(&ge->entity); xe_sched_entity_fini(&ge->entity);
err_sched: err_sched:
xe_sched_fini(&ge->sched); xe_sched_fini(&ge->sched);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment