Thread (21 messages) 21 messages, 4 authors, 2025-06-24
STALE387d

[PATCH v2 09/16] drm/bridge/fsl-ldb: Keep up with refcounting.

From: Anusha Srivatsa <hidden>
Date: 2025-06-19 19:19:02
Also in: dri-devel, linux-renesas-soc, linux-samsung-soc, linux-sunxi, linux-tegra, lkml
Subsystem: drm drivers, drm drivers and misc gpu patches, drm drivers for bridge chips, the rest · Maintainers: David Airlie, Simona Vetter, Maarten Lankhorst, Maxime Ripard, Thomas Zimmermann, Andrzej Hajda, Neil Armstrong, Robert Foss, Linus Torvalds

The panel returned by of_drm_find_panel() is for
calling devm_drm_panel_bridge_add and not
anywhere after that.

Put the panel reference accordingly.

Patch added in v2.

Signed-off-by: Anusha Srivatsa <redacted>
---
 drivers/gpu/drm/bridge/fsl-ldb.c | 3 +++
 1 file changed, 3 insertions(+)
diff --git a/drivers/gpu/drm/bridge/fsl-ldb.c b/drivers/gpu/drm/bridge/fsl-ldb.c
index 5c3cf37200bcee1db285c97e2b463c9355ee6acb..ef0bbc272c1dc3484d0f7955233f4e8c6590235f 100644
--- a/drivers/gpu/drm/bridge/fsl-ldb.c
+++ b/drivers/gpu/drm/bridge/fsl-ldb.c
@@ -341,6 +341,9 @@ static int fsl_ldb_probe(struct platform_device *pdev)
 		return PTR_ERR(panel);
 
 	fsl_ldb->panel_bridge = devm_drm_panel_bridge_add(dev, panel);
+
+	drm_panel_put(panel);
+
 	if (IS_ERR(fsl_ldb->panel_bridge))
 		return PTR_ERR(fsl_ldb->panel_bridge);
 
-- 
2.48.1

Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help