[PATCH] drm/bridge: ti-sn65dsi86: Fix DSI host node reference leak

From: Haoxiang Li

Date: Wed Nov 18 2026 - 10:03:04 EST


ti_sn_bridge_parse_dsi_host() acquires a reference to the remote DSI
host node with of_graph_get_remote_node(). If ti_sn_attach_host()
fails, the probe error path removes the bridge but does not release
this reference.

Call of_node_put() after removing the bridge in the probe error path.

Fixes: c3b75d4734cb ("drm/bridge: sn65dsi86: Register and attach our DSI device at probe")
Signed-off-by: Haoxiang Li <haoxiang_li2024@xxxxxxx>
---
drivers/gpu/drm/bridge/ti-sn65dsi86.c | 1 +
1 file changed, 1 insertion(+)

diff --git a/drivers/gpu/drm/bridge/ti-sn65dsi86.c b/drivers/gpu/drm/bridge/ti-sn65dsi86.c
index 48b83df9aed6..f4cf3b4af876 100644
--- a/drivers/gpu/drm/bridge/ti-sn65dsi86.c
+++ b/drivers/gpu/drm/bridge/ti-sn65dsi86.c
@@ -1465,6 +1465,7 @@ static int ti_sn_bridge_probe(struct auxiliary_device *adev,

err_remove_bridge:
drm_bridge_remove(&pdata->bridge);
+ of_node_put(pdata->host_node);
return ret;
}

--
2.25.1