[PATCH v4 01/10] drm/tests: hdmi: handle empty modes in find_preferred_mode()
Maxime Ripard
mripard at kernel.org
Mon Nov 25 09:13:59 UTC 2024
On Fri, 22 Nov 2024 11:12:57 +0200, Dmitry Baryshkov wrote:
> If the connector->modes list is empty, then list_first_entry() returns a
> bogus entry. Change that to use list_first_entry_or_null().
>
> Signed-off-by: Dmitry Baryshkov <dmitry.baryshkov at linaro.org>
Reviewed-by: Maxime Ripard <mripard at kernel.org>
Thanks!
Maxime
More information about the dri-devel
mailing list