[PATCH] ARM: OMAP2+: Fix refcount leak in omapdss_init_of

Tony Lindgren tony at atomide.com
Mon Jun 27 21:36:50 PDT 2022


* Laurent Pinchart <laurent.pinchart at ideasonboard.com> [220601 06:46]:
> Hello Lin,
> 
> Thank you for the patch.
> 
> On Wed, Jun 01, 2022 at 08:48:58AM +0400, Miaoqian Lin wrote:
> > omapdss_find_dss_of_node() calls of_find_compatible_node() to get device
> > node. of_find_compatible_node() returns a node pointer with refcount
> > incremented, we should use of_node_put() on it when done.
> > Add missing of_node_put() in later error path and normal path.
> > 
> > Fixes: e0c827aca0730 ("drm/omap: Populate DSS children in omapdss driver")
> > Signed-off-by: Miaoqian Lin <linmq006 at gmail.com>
> 
> Reviewed-by: Laurent Pinchart <laurent.pinchart at ideasonboard.com>

Thanks applying this into omap-for-v5.20/soc.

Regards,

Tony



More information about the linux-arm-kernel mailing list