mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH 0/3] drm: Fix resource leaks on power-on failure paths
@ 2026-11-04  9:33 Tang Bin
  2026-11-04  9:33 ` [PATCH 1/3] drm/panel: renesas-r61307: disable vcc on iovcc enable failure Tang Bin
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: Tang Bin @ 2026-11-04  9:33 UTC (permalink / raw)
  To: Neil Armstrong, Jessica Zhang, Maarten Lankhorst, Maxime Ripard,
	Thomas Zimmermann, Andrzej Hajda, Robert Foss, David Airlie,
	Simona Vetter, Laurent Pinchart, Jonas Karlman, Jernej Skrabec,
	Luca Ceresoli
  Cc: dri-devel, linux-kernel, Tang Bin

This series fixes similar resource leak bugs in DRM panel and bridge
drivers.

In all three drivers, a primary resource (regulator or clock) is enabled
first, followed by a secondary resource. If enabling the secondary
resource fails, the drivers return directly without disabling the first
one. Because these resources are reference-counted and the matching
power-off/unprepare callbacks won't be triggered on failure, the
reference counts leak.

Patch 1 and 2 use goto labels to rollback the regulators. Patch 3 is a
void function and explicitly disables the leaked regulator on failure.

Tang Bin (3):
  drm/panel: renesas-r61307: disable vcc on iovcc enable failure
  drm/panel: otm8009a: disable supply on init_sequence failure
  drm/bridge: anx6345: disable dvdd12 on dvdd25 enable failure

 drivers/gpu/drm/bridge/analogix/analogix-anx6345.c | 1 +
 drivers/gpu/drm/panel/panel-orisetech-otm8009a.c   | 6 +++++-
 drivers/gpu/drm/panel/panel-renesas-r61307.c       | 6 +++++-
 3 files changed, 11 insertions(+), 2 deletions(-)

-- 
2.52.0.windows.1




^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2026-11-04  9:33 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-11-04  9:33 [PATCH 0/3] drm: Fix resource leaks on power-on failure paths Tang Bin
2026-11-04  9:33 ` [PATCH 1/3] drm/panel: renesas-r61307: disable vcc on iovcc enable failure Tang Bin
2026-11-04  9:33 ` [PATCH 2/3] drm/panel: otm8009a: disable supply on init_sequence failure Tang Bin
2026-11-04  9:33 ` [PATCH 3/3] drm/bridge: anx6345: disable dvdd12 on dvdd25 enable failure Tang Bin

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®