Skip to content

Commit 6220729

Browse files
Haoxiang LiThomas Hellström
authored andcommitted
drm/xe/display: Add check for alloc_ordered_workqueue()
Add check for the return value of alloc_ordered_workqueue() in xe_display_create() to catch potential exception. Fixes: 44e6949 ("drm/xe/display: Implement display support") Cc: [email protected] Signed-off-by: Haoxiang Li <[email protected]> Reviewed-by: Matthew Auld <[email protected]> Link: https://lore.kernel.org/r/4ee1b0e5d1626ce1dde2e82af05c2edaed50c3aa.1747397638.git.jani.nikula@intel.com Signed-off-by: Jani Nikula <[email protected]> (cherry picked from commit 5b62d63) Signed-off-by: Thomas Hellström <[email protected]>
1 parent 86731a2 commit 6220729

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

drivers/gpu/drm/xe/display/xe_display.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -104,6 +104,8 @@ int xe_display_create(struct xe_device *xe)
104104
spin_lock_init(&xe->display.fb_tracking.lock);
105105

106106
xe->display.hotplug.dp_wq = alloc_ordered_workqueue("xe-dp", 0);
107+
if (!xe->display.hotplug.dp_wq)
108+
return -ENOMEM;
107109

108110
return drmm_add_action_or_reset(&xe->drm, display_destroy, NULL);
109111
}

0 commit comments

Comments
 (0)