On Fri, 10 Jun 2022 at 10:30, Maxime Ripard <maxime@xxxxxxxxxx> wrote: > > Since we have a managed call to create our panel_bridge instance, the call > to drm_of_panel_bridge_remove() at unbind is both redundant and dangerous > since it might lead to a use-after-free. > > Signed-off-by: Maxime Ripard <maxime@xxxxxxxxxx> Reviewed-by: Dave Stevenson <dave.stevenson@xxxxxxxxxxxxxxx> > --- > drivers/gpu/drm/vc4/vc4_dpi.c | 2 -- > 1 file changed, 2 deletions(-) > > diff --git a/drivers/gpu/drm/vc4/vc4_dpi.c b/drivers/gpu/drm/vc4/vc4_dpi.c > index 658e0aa9e2e1..5a6cdea7bf7b 100644 > --- a/drivers/gpu/drm/vc4/vc4_dpi.c > +++ b/drivers/gpu/drm/vc4/vc4_dpi.c > @@ -309,8 +309,6 @@ static void vc4_dpi_unbind(struct device *dev, struct device *master, > { > struct vc4_dpi *dpi = dev_get_drvdata(dev); > > - drm_of_panel_bridge_remove(dev->of_node, 0, 0); > - > drm_encoder_cleanup(&dpi->encoder.base); > > clk_disable_unprepare(dpi->core_clock); > -- > 2.36.1 >