On Tue, Aug 4, 2026 at 12:11 AM Jernej Skrabec <[email protected]> wrote: > > sun4i_tcon_of_get_id_from_port() never drops the reference taken by > of_graph_get_remote_endpoint(). The function is not only called during > bind, but also on every mode set through sun8i_r40_tcon_tv_set_mux(), > so the leak accumulates. > > Fixes: e8d5bbf7f4c4 ("drm/sun4i: tcon: get TCON ID and matching engine with > remote endpoint ID") > Signed-off-by: Jernej Skrabec <[email protected]>
Acked-by: Chen-Yu Tsai <[email protected]> > --- > drivers/gpu/drm/sun4i/sun4i_tcon.c | 1 + > 1 file changed, 1 insertion(+) > > diff --git a/drivers/gpu/drm/sun4i/sun4i_tcon.c > b/drivers/gpu/drm/sun4i/sun4i_tcon.c > index de2d66623f7a..67047e3b657f 100644 > --- a/drivers/gpu/drm/sun4i/sun4i_tcon.c > +++ b/drivers/gpu/drm/sun4i/sun4i_tcon.c > @@ -972,6 +972,7 @@ static int sun4i_tcon_of_get_id_from_port(struct > device_node *port) > continue; > > ret = of_property_read_u32(remote, "reg", ®); > + of_node_put(remote); > if (ret) > continue; > > -- > 2.43.0 > >
