diff options
author | Haoxiang Li <haoxiang_li2024@163.com> | 2025-05-16 15:16:54 +0300 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2025-07-06 11:04:11 +0200 |
commit | 3fa645b511ecb00db8c3a6e0a344ff5b05869fce (patch) | |
tree | 1981c4c83b3ffd3bd03bc2d84e1c917c7a330e58 /net/unix/af_unix.c | |
parent | da3d5defe7e404d86c6da3eaedc6a974685c07a9 (diff) |
drm/i915/display: Add check for alloc_ordered_workqueue() and alloc_workqueue()
[ Upstream commit f4c7baa0699b69edb6887a992283b389761e0e81 ]
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>
(cherry picked from commit dcab7a228f4ea9cda3f5b0a1f0679e046d23d7f7)
Signed-off-by: Joonas Lahtinen <joonas.lahtinen@linux.intel.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
Diffstat (limited to 'net/unix/af_unix.c')
0 files changed, 0 insertions, 0 deletions