]> git.baikalelectronics.ru Git - kernel.git/commit
ARM: OMAP2+: Fix refcount leak in omapdss_init_of
authorMiaoqian Lin <linmq006@gmail.com>
Wed, 1 Jun 2022 04:48:58 +0000 (08:48 +0400)
committerTony Lindgren <tony@atomide.com>
Tue, 28 Jun 2022 04:36:26 +0000 (07:36 +0300)
commitcfdf7d37a37be138e51f206dfd0100bbfc9cd3c1
tree451f108ffecf3594ff2ac78dc4064b2b9879fc20
parentf040cca4b0da0180bf9de9141ef5c95f60f85182
ARM: OMAP2+: Fix refcount leak in omapdss_init_of

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: 9371ff71a3a5b ("drm/omap: Populate DSS children in omapdss driver")
Signed-off-by: Miaoqian Lin <linmq006@gmail.com>
Message-Id: <20220601044858.3352-1-linmq006@gmail.com>
Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Signed-off-by: Tony Lindgren <tony@atomide.com>
arch/arm/mach-omap2/display.c