[v5,01/10] drm/tests: hdmi: handle empty modes in find_preferred_mode()

AngeloGioacchino Del Regno angelogioacchino.delregno at collabora.com
Mon Dec 9 02:31:52 PST 2024


Il 30/11/24 02:52, Dmitry Baryshkov ha scritto:
> If the connector->modes list is empty, then list_first_entry() returns a
> bogus entry. Change that to use list_first_entry_or_null().
> 
> Reviewed-by: Maxime Ripard <mripard at kernel.org>
> Signed-off-by: Dmitry Baryshkov <dmitry.baryshkov at linaro.org>

Reviewed-by: AngeloGioacchino Del Regno <angelogioacchino.delregno at collabora.com>




More information about the linux-arm-kernel mailing list