diff options
| author | Dmitry Baryshkov <dmitry.baryshkov@linaro.org> | 2024-11-30 03:52:26 +0200 |
|---|---|---|
| committer | Dmitry Baryshkov <dmitry.baryshkov@linaro.org> | 2024-12-05 14:36:00 +0200 |
| commit | d3314efd6ebf335a3682b1d6b1b81cdab3d8254a (patch) | |
| tree | 2fe432e15863daf552730ef95ce390111d31b531 /tools/perf/scripts/python/flamegraph.py | |
| parent | drm: remove driver date from struct drm_driver and all drivers (diff) | |
| download | linux-d3314efd6ebf335a3682b1d6b1b81cdab3d8254a.tar.gz linux-d3314efd6ebf335a3682b1d6b1b81cdab3d8254a.zip | |
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 'tools/perf/scripts/python/flamegraph.py')
0 files changed, 0 insertions, 0 deletions
