]> git.baikalelectronics.ru Git - kernel.git/commit
drm: Add drm_mode_init()
authorVille Syrjälä <ville.syrjala@linux.intel.com>
Fri, 18 Feb 2022 10:03:42 +0000 (12:03 +0200)
committerVille Syrjälä <ville.syrjala@linux.intel.com>
Mon, 14 Mar 2022 15:36:59 +0000 (17:36 +0200)
commit1e22788de68bff509a54fa3a7638251540a6bf42
tree3b7c51954ad57b43bca092091ce6493176f7fd1c
parentf1cc23474db76fe93c642a69c6c6a7f1eaa6e3d9
drm: Add drm_mode_init()

Add a variant of drm_mode_copy() that explicitly clears out
the list head of the destination mode. Helpful to guarantee
we don't have stack garbage left in there for on-stack modes.

Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20220218100403.7028-2-ville.syrjala@linux.intel.com
Reviewed-by: Andrzej Hajda <andrzej.hajda@intel.com>
Reviewed-by: Harry Wentland <harry.wentland@amd.com>
drivers/gpu/drm/drm_modes.c
include/drm/drm_modes.h