Commit 5b62d633 authored by Haoxiang Li's avatar Haoxiang Li Committed by Jani Nikula
Browse files

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: 44e69495 ("drm/xe/display: Implement display support")
Cc: stable@vger.kernel.org
Signed-off-by: default avatarHaoxiang Li <haoxiang_li2024@163.com>
Reviewed-by: default avatarMatthew Auld <matthew.auld@intel.com>
Link: https://lore.kernel.org/r/4ee1b0e5d1626ce1dde2e82af05c2edaed50c3aa.1747397638.git.jani.nikula@intel.com


Signed-off-by: default avatarJani Nikula <jani.nikula@intel.com>
parent dcab7a22
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -112,6 +112,8 @@ int xe_display_create(struct xe_device *xe)
	spin_lock_init(&display->fb_tracking.lock);

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

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