]> www.infradead.org Git - users/jedix/linux-maple.git/commit
drm/i915/display: Add check for alloc_ordered_workqueue() and alloc_workqueue()
authorHaoxiang Li <haoxiang_li2024@163.com>
Fri, 16 May 2025 12:16:54 +0000 (15:16 +0300)
committerJani Nikula <jani.nikula@intel.com>
Tue, 20 May 2025 17:55:22 +0000 (20:55 +0300)
commitdcab7a228f4ea9cda3f5b0a1f0679e046d23d7f7
tree2f5030c5446922392aabb2e6bb1881e89ed88443
parentc3a48363cf1f76147088b1adb518136ac5df86a0
drm/i915/display: Add check for alloc_ordered_workqueue() and alloc_workqueue()

Add check for the return value of alloc_ordered_workqueue()
and alloc_workqueue(). Furthermore, if some allocations fail,
cleanup works are added to avoid potential memory leak problem.

Fixes: 40053823baad ("drm/i915/display: move modeset probe/remove functions to intel_display_driver.c")
Cc: stable@vger.kernel.org
Signed-off-by: Haoxiang Li <haoxiang_li2024@163.com>
Reviewed-by: Matthew Auld <matthew.auld@intel.com>
Link: https://lore.kernel.org/r/20d3d096c6a4907636f8a1389b3b4dd753ca356e.1747397638.git.jani.nikula@intel.com
Signed-off-by: Jani Nikula <jani.nikula@intel.com>
drivers/gpu/drm/i915/display/intel_display_driver.c