linux/drivers/gpu/drm/tests
Maxime Ripard 8b6f2e2843
drm/tests: probe-helper: Fix drm_display_mode memory leak
drm_analog_tv_mode() and its variants return a drm_display_mode that
needs to be destroyed later one. The
drm_test_connector_helper_tv_get_modes_check() test never does however,
which leads to a memory leak.

Let's make sure it's freed.

Reported-by: Philipp Stanner <phasta@mailbox.org>
Closes: https://lore.kernel.org/dri-devel/a7655158a6367ac46194d57f4b7433ef0772a73e.camel@mailbox.org/
Fixes: 1e4a91db10 ("drm/probe-helper: Provide a TV get_modes helper")
Reviewed-by: Thomas Zimmermann <tzimmermann@suse.de>
Link: https://lore.kernel.org/r/20250408-drm-kunit-drm-display-mode-memleak-v1-7-996305a2e75a@kernel.org
Signed-off-by: Maxime Ripard <mripard@kernel.org>
2025-04-08 17:28:25 +02:00
..
.kunitconfig
Makefile drm/tests: Add test for drm_atomic_helper_commit_modeset_disables() 2025-01-08 01:25:15 +02:00
drm_atomic_state_test.c drm/tests: Drop drm_kunit_helper_acquire_ctx_alloc() 2025-03-03 14:21:58 +01:00
drm_buddy_test.c drm/tests/buddy: fix build with unused prng 2025-01-15 19:01:35 +05:30
drm_client_modeset_test.c drm/tests: modeset: Fix drm_display_mode memory leak 2025-04-08 17:28:10 +02:00
drm_cmdline_parser_test.c drm/tests: cmdline: Fix drm_display_mode memory leak 2025-04-08 17:28:14 +02:00
drm_connector_test.c Linux 6.13 2025-01-23 14:42:21 +01:00
drm_damage_helper_test.c drm/tests: add missing MODULE_DESCRIPTION() macros 2024-06-10 10:32:48 +02:00
drm_dp_mst_helper_test.c drm/mst: remove mgr parameter and debug logging from drm_dp_get_vc_payload_bw() 2025-01-07 18:43:18 +02:00
drm_exec_test.c drm/tests: add missing MODULE_DESCRIPTION() macros 2024-06-10 10:32:48 +02:00
drm_format_helper_test.c drm/format-helper: Add conversion from XRGB8888 to BGR888 2025-03-03 16:13:33 +01:00
drm_format_test.c drm/tests: add missing MODULE_DESCRIPTION() macros 2024-06-10 10:32:48 +02:00
drm_framebuffer_test.c drm/tests: Add test for drm_framebuffer_free() 2024-09-11 14:17:11 +02:00
drm_gem_shmem_test.c Linux 6.11-rc5 2024-08-27 14:09:45 +02:00
drm_hdmi_state_helper_test.c drm/tests: Drop drm_kunit_helper_acquire_ctx_alloc() 2025-03-03 14:21:58 +01:00
drm_kunit_edid.h drm/display: hdmi: add generic mode_valid helper 2024-12-05 14:36:01 +02:00
drm_kunit_helpers.c drm/tests: helpers: Create kunit helper to destroy a drm_display_mode 2025-04-08 17:26:58 +02:00
drm_managed_test.c drm/tests: add missing MODULE_DESCRIPTION() macros 2024-06-10 10:32:48 +02:00
drm_mm_test.c drm/tests: add missing MODULE_DESCRIPTION() macros 2024-06-10 10:32:48 +02:00
drm_modes_test.c drm/tests: modes: Fix drm_display_mode memory leak 2025-04-08 17:28:21 +02:00
drm_plane_helper_test.c drm/tests: add missing MODULE_DESCRIPTION() macros 2024-06-10 10:32:48 +02:00
drm_probe_helper_test.c drm/tests: probe-helper: Fix drm_display_mode memory leak 2025-04-08 17:28:25 +02:00
drm_rect_test.c drm/tests: add missing MODULE_DESCRIPTION() macros 2024-06-10 10:32:48 +02:00