linux-uconsole/drivers/gpu/drm/mediatek
Nishka Dasgupta a03ed2891c drm/mediatek: mtk_drm_drv.c: Add of_node_put() before goto
commit 165d42c012 upstream.

Each iteration of for_each_child_of_node puts the previous
node, but in the case of a goto from the middle of the loop, there is
no put, thus causing a memory leak. Hence add an of_node_put before the
goto in two places.
Issue found with Coccinelle.

Fixes: 119f517362 (drm/mediatek: Add DRM Driver for Mediatek SoC MT8173)

Signed-off-by: Nishka Dasgupta <nishkadg.linux@gmail.com>
Signed-off-by: CK Hu <ck.hu@mediatek.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2019-09-19 09:09:39 +02:00
..
Kconfig drm/mediatek: Using the function drm_display_mode_to_videomode 2018-05-02 14:20:47 +08:00
Makefile
mtk_cec.c headers: separate linux/mod_devicetable.h from linux/platform_device.h 2018-07-07 17:52:26 +02:00
mtk_cec.h
mtk_disp_color.c
mtk_disp_ovl.c drm/mediatek: add function to return OVL layer number 2018-08-27 11:24:36 +08:00
mtk_disp_rdma.c drm/mediatek: add function to return RDMA layer number 2018-08-27 11:24:37 +08:00
mtk_dpi.c drm/mediatek: Using the function drm_display_mode_to_videomode 2018-05-02 14:20:47 +08:00
mtk_dpi_regs.h
mtk_drm_crtc.c treewide: Replace more open-coded allocation size multiplications 2018-10-05 18:06:30 -07:00
mtk_drm_crtc.h drm/mediatek: update some variable name from ovl to comp 2018-08-27 11:24:37 +08:00
mtk_drm_ddp.c drm/mediatek: fix connection from RDMA2 to DSI1 2018-08-27 11:24:37 +08:00
mtk_drm_ddp.h
mtk_drm_ddp_comp.c drm/mediatek: add the DSI1 for component init condition 2018-06-24 12:03:57 +08:00
mtk_drm_ddp_comp.h drm/mediatek: add function to get layer number for component 2018-08-27 11:24:36 +08:00
mtk_drm_drv.c drm/mediatek: mtk_drm_drv.c: Add of_node_put() before goto 2019-09-19 09:09:39 +02:00
mtk_drm_drv.h drm/mediatek: set DMA max segment size 2019-09-10 10:33:45 +01:00
mtk_drm_fb.c drm/mtk: mtk_drm_fb -> drm_framebuffer 2018-06-28 00:27:36 +08:00
mtk_drm_fb.h drm/mtk: Move GEM BO to drm_framebuffer 2018-06-28 00:27:36 +08:00
mtk_drm_gem.c
mtk_drm_gem.h
mtk_drm_plane.c drm/mtk: Move GEM BO to drm_framebuffer 2018-06-28 00:27:36 +08:00
mtk_drm_plane.h
mtk_dsi.c drm/mediatek: call mtk_dsi_stop() after mtk_drm_crtc_atomic_disable() 2019-07-10 09:53:34 +02:00
mtk_hdmi.c drm/mediatek: fix possible object reference leak 2019-05-10 17:54:09 +02:00
mtk_hdmi.h
mtk_hdmi_ddc.c
mtk_hdmi_regs.h
mtk_mipi_tx.c
mtk_mt8173_hdmi_phy.c