summaryrefslogtreecommitdiff
path: root/scripts/include
diff options
context:
space:
mode:
authorDmitry Baryshkov <dmitry.baryshkov@linaro.org>2024-11-30 04:52:26 +0300
committerDmitry Baryshkov <dmitry.baryshkov@linaro.org>2024-12-05 15:36:00 +0300
commitd3314efd6ebf335a3682b1d6b1b81cdab3d8254a (patch)
tree2fe432e15863daf552730ef95ce390111d31b531 /scripts/include
parentcb2e1c2136f71618142557ceca3a8802e87a44cd (diff)
downloadlinux-d3314efd6ebf335a3682b1d6b1b81cdab3d8254a.tar.xz
drm/tests: hdmi: handle empty modes in find_preferred_mode()
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@kernel.org> Link: https://patchwork.freedesktop.org/patch/msgid/20241130-hdmi-mode-valid-v5-1-742644ec3b1f@linaro.org Signed-off-by: Dmitry Baryshkov <dmitry.baryshkov@linaro.org>
Diffstat (limited to 'scripts/include')
0 files changed, 0 insertions, 0 deletions