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 drm/rockchip: psr: Sanitize semantics of allow/inhibit API 2018-04-24 08:34:52 +02:00
cdn-dp-core.c drm: drop _mode_ from drm_mode_connector_attach_encoder 2018-07-13 18:40:27 +02:00
cdn-dp-core.h drm/rockchip: cdn-dp: retry to check sink count 2017-02-05 16:30:04 +08:00
cdn-dp-reg.c drm/rockchip: fix for mailbox read size 2018-11-19 14:59:50 +01:00
cdn-dp-reg.h drm/rockchip: cdn-dp: Correct PHY register address 2017-03-13 15:59:26 -04:00
dw_hdmi-rockchip.c drm/rockchip: dw_hdmi: add dw-hdmi support for the rk3328 2018-09-28 12:33:05 +02:00
dw-mipi-dsi-rockchip.c drm/rockchip: dsi: add dual mipi support 2018-10-30 14:06:31 +01:00
inno_hdmi.c drm: drop _mode_ from drm_mode_connector_attach_encoder 2018-07-13 18:40:27 +02:00
inno_hdmi.h drm/rockchip: hdmi: add Innosilicon HDMI support 2016-02-18 13:56:43 +08:00
Kconfig drm/rockchip: dsi: migrate to use dw-mipi-dsi bridge driver 2018-10-30 14:06:15 +01:00
Makefile drm/rockchip: dsi: migrate to use dw-mipi-dsi bridge driver 2018-10-30 14:06:15 +01:00
rockchip_drm_drv.c drm pull request for 4.21-rc1 2018-12-25 11:48:26 -08:00
rockchip_drm_drv.h drm/rockchip: dsi: add dual mipi support 2018-10-30 14:06:31 +01:00
rockchip_drm_fb.c drm/rockchip: rockchip_drm_fb -> drm_framebuffer 2018-05-18 16:02:05 +01:00
rockchip_drm_fb.h drm/rockchip: rockchip_drm_fb -> drm_framebuffer 2018-05-18 16:02:05 +01:00
rockchip_drm_fbdev.c drm/rockchip: Replace dev_* with DRM_DEV_* 2017-09-18 09:50:44 +08:00
rockchip_drm_fbdev.h drm/rockchip: respect CONFIG_DRM_FBDEV_EMULATION 2016-01-22 08:45:31 +08:00
rockchip_drm_gem.c drm/rockchip: fixup comment for gem_free_object_unlocked 2018-03-28 17:07:36 +02:00
rockchip_drm_gem.h drm/rockchip: support prime import sg table 2018-02-18 11:16:40 +01:00
rockchip_drm_psr.c drm/rockchip: psr: do not dereference encoder before it is null checked. 2018-10-16 14:57:06 +02:00
rockchip_drm_psr.h drm/rockchip: psr: Remove flush by CRTC 2018-04-24 08:34:54 +02:00
rockchip_drm_vop.c drm/rockchip: dsi: add dual mipi support 2018-10-30 14:06:31 +01:00
rockchip_drm_vop.h drm/rockchip: dsi: add dual mipi support 2018-10-30 14:06:31 +01:00
rockchip_lvds.c drm: drop _mode_ from drm_mode_connector_attach_encoder 2018-07-13 18:40:27 +02:00
rockchip_lvds.h drm/rockchip: Add support for Rockchip Soc LVDS 2017-09-08 14:57:26 +08:00
rockchip_rgb.c drm/rockchip: add missing of_node_put 2019-01-13 19:20:45 +01:00
rockchip_rgb.h drm/rockchip: rgb: add stub functions when rgb encoder is disabled 2018-09-05 15:43:14 -04:00
rockchip_vop_reg.c drm/rockchip: dsi: add dual mipi support 2018-10-30 14:06:31 +01:00
rockchip_vop_reg.h drm/rockchip: vop: add rk3188 vop definitions 2018-09-05 12:25:48 +02:00