]> Git Repo - linux.git/commitdiff
drm/xe: Properly handle alloc_guc_id() failure
authorNiranjana Vishwanathapura <[email protected]>
Tue, 21 May 2024 20:17:11 +0000 (13:17 -0700)
committerThomas Hellström <[email protected]>
Tue, 28 May 2024 06:53:45 +0000 (08:53 +0200)
Release the submission_state lock if alloc_guc_id() fails.

v2: Add Fixes tag and CC stable kernel

Fixes: dd08ebf6c352 ("drm/xe: Introduce a new DRM driver for Intel GPUs")
Cc: <[email protected]> # v6.8+
Signed-off-by: Niranjana Vishwanathapura <[email protected]>
Reviewed-by: Nirmoy Das <[email protected]>
Reviewed-by: Matthew Brost <[email protected]>
Signed-off-by: José Roberto de Souza <[email protected]>
Link: https://patchwork.freedesktop.org/patch/msgid/[email protected]
(cherry picked from commit 40672b792a36894aff3a337b695f6136ee6ac5d4)
Signed-off-by: Thomas Hellström <[email protected]>
drivers/gpu/drm/xe/xe_guc_submit.c

index c7d38469fb4690cd69a5541b0500998290d44f43..e4e3658e6a1384b9d2936de133dcd322065392e2 100644 (file)
@@ -1240,6 +1240,7 @@ static int guc_exec_queue_init(struct xe_exec_queue *q)
        return 0;
 
 err_entity:
+       mutex_unlock(&guc->submission_state.lock);
        xe_sched_entity_fini(&ge->entity);
 err_sched:
        xe_sched_fini(&ge->sched);
This page took 0.065024 seconds and 4 git commands to generate.