linux_dsm_epyc7002/drivers/gpu/drm/rockchip
Julia Lawall a17ce9960b drm/rockchip: add missing of_node_put
The device node iterators perform an of_node_get on each iteration, so a
jump out of the loop requires an of_node_put.

The semantic patch that fixes this problem is as follows
(http://coccinelle.lip6.fr):

// <smpl>
@@
expression root,e;
local idexpression child;
iterator name for_each_child_of_node;
@@

 for_each_child_of_node(root, child) {
   ... when != of_node_put(child)
       when != e = child
+  of_node_put(child);
?  break;
   ...
}
... when != child
// </smpl>

Fixes: 1f0f015151 ("drm/rockchip: Add support for Rockchip Soc RGB output interface")
Cc: stable@vger.kernel.org
Signed-off-by: Julia Lawall <Julia.Lawall@lip6.fr>
[added fixes and cc-stable]
Signed-off-by: Heiko Stuebner <heiko@sntech.de>
Link: https://patchwork.freedesktop.org/patch/msgid/1547369264-24831-4-git-send-email-Julia.Lawall@lip6.fr
2019-01-13 19:20:45 +01:00
..
analogix_dp-rockchip.c
cdn-dp-core.c
cdn-dp-core.h
cdn-dp-reg.c
cdn-dp-reg.h
dw_hdmi-rockchip.c
dw-mipi-dsi-rockchip.c
inno_hdmi.c
inno_hdmi.h
Kconfig
Makefile
rockchip_drm_drv.c
rockchip_drm_drv.h
rockchip_drm_fb.c
rockchip_drm_fb.h
rockchip_drm_fbdev.c
rockchip_drm_fbdev.h
rockchip_drm_gem.c
rockchip_drm_gem.h
rockchip_drm_psr.c
rockchip_drm_psr.h
rockchip_drm_vop.c
rockchip_drm_vop.h
rockchip_lvds.c
rockchip_lvds.h
rockchip_rgb.c drm/rockchip: add missing of_node_put 2019-01-13 19:20:45 +01:00
rockchip_rgb.h
rockchip_vop_reg.c
rockchip_vop_reg.h