[PATCH v2 0/2] a fix for connector modes leak in amdgpu driver

From: Fedor Pchelkin
Date: Tue Aug 19 2025 - 14:47:22 EST


The first patch is a prerequisite exporting a convenient helper at
include/drm/modes.h used in the second one fixing a leak in amdgpu
driver.

v1: https://lore.kernel.org/all/20250817094346.15740-1-pchelkin@xxxxxxxxx/

Fedor Pchelkin (2):
drm/modes: export drm_mode_remove() helper
drm/amd/display: fix leak of probed modes

drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c | 3 +++
drivers/gpu/drm/drm_connector.c | 8 +-------
drivers/gpu/drm/drm_modes.c | 15 +++++++++++++++
include/drm/drm_modes.h | 1 +
4 files changed, 20 insertions(+), 7 deletions(-)

--
2.50.1