* [PATCH 10/20] drm/exynos: dpi: Fix OF node leak in exynos_dpi_parse_dt()
@ 2026-09-16 7:20 Wentao Liang
0 siblings, 0 replies; only message in thread
From: Wentao Liang @ 2026-09-16 7:20 UTC (permalink / raw)
To: airlied
Cc: alim.akhtar, dri-devel, inki.dae, krzk, kyungmin.park,
linux-arm-kernel, linux-kernel, linux-samsung-soc,
neil.armstrong, robh, seanpaul, simona, sw0312.kim, Wentao Liang,
stable
In exynos_dpi_parse_dt(), ctx->panel_node is obtained using
of_graph_get_remote_node(). However, when "display-timings" child node
is present, the driver uses display timings directly and ignores the
panel node without releasing the acquired reference count.
Call of_node_put() on ctx->panel_node and set it to NULL when
"display-timings" is present to prevent reference leaks.
Fixes: 86418f90a4c1 ("drm: convert drivers to use of_graph_get_remote_node")
Cc: stable@vger.kernel.org
Signed-off-by: Wentao Liang <vulab@iscas.ac.cn>
---
drivers/gpu/drm/exynos/exynos_drm_dpi.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/drivers/gpu/drm/exynos/exynos_drm_dpi.c b/drivers/gpu/drm/exynos/exynos_drm_dpi.c
index 0dc36df6ada3..0b64d1031951 100644
--- a/drivers/gpu/drm/exynos/exynos_drm_dpi.c
+++ b/drivers/gpu/drm/exynos/exynos_drm_dpi.c
@@ -168,6 +168,8 @@ static int exynos_dpi_parse_dt(struct exynos_dpi *ctx)
int ret;
of_node_put(np);
+ of_node_put(ctx->panel_node);
+ ctx->panel_node = NULL;
vm = devm_kzalloc(dev, sizeof(*ctx->vm), GFP_KERNEL);
if (!vm)
--
2.34.1
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2026-09-16 7:20 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-09-16 7:20 [PATCH 10/20] drm/exynos: dpi: Fix OF node leak in exynos_dpi_parse_dt() Wentao Liang
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®