linux/drivers/gpu/drm/imx
Julia Lawall aa3312012f drm/imx: imx-ldb: add missing of_node_puts
The device node iterators perform an of_node_get on each
iteration, so a jump out of the loop requires an of_node_put.

Move the initialization channel->child = child; down to just
before the call to imx_ldb_register so that intervening failures
don't need to clear it.  Add a label at the end of the function to
do all the of_node_puts.

The semantic patch that finds part of 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
(
   return child;
|
*  return ...;
)
   ...
 }
// </smpl>

Signed-off-by: Julia Lawall <Julia.Lawall@lip6.fr>
Signed-off-by: Philipp Zabel <p.zabel@pengutronix.de>
2019-01-17 14:59:02 +01:00
..
dw_hdmi-imx.c drm/imx: Switch to SPDX identifier 2018-11-05 14:40:06 +01:00
imx-drm-core.c drm/imx: Switch to SPDX identifier 2018-11-05 14:40:06 +01:00
imx-drm.h drm/imx: Remove last traces of struct imx_drm_crtc 2018-07-16 16:56:35 +02:00
imx-ldb.c drm/imx: imx-ldb: add missing of_node_puts 2019-01-17 14:59:02 +01:00
imx-tve.c drm/imx: imx-tve: constify clk_ops structure 2018-11-05 14:40:06 +01:00
ipuv3-crtc.c drm/imx: Switch to SPDX identifier 2018-11-05 14:40:06 +01:00
ipuv3-plane.c drm/imx: ignore plane updates on disabled crtcs 2019-01-07 10:29:12 +01:00
ipuv3-plane.h License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
Kconfig drm/imx: merge imx-drm-core and ipuv3-crtc in one module 2017-04-04 10:59:08 +02:00
Makefile License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
parallel-display.c drm/imx: Switch to SPDX identifier 2018-11-05 14:40:06 +01:00