linux/drivers/media/platform/xilinx
Julia Lawall cea590d46f [media] v4l: xilinx-vipp: add missing of_node_put
for_each_child_of_node performs an of_node_get on each iteration, so
a break out of the loop requires an of_node_put.

A simplified version of the semantic patch that fixes this problem is as
follows (http://coccinelle.lip6.fr):

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

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

Signed-off-by: Julia Lawall <Julia.Lawall@lip6.fr>
Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@osg.samsung.com>
2015-11-19 09:27:17 -02:00
..
Kconfig [media] v4l: xilinx: VIDEO_XILINX should depend on HAS_DMA 2015-05-01 07:10:09 -03:00
Makefile [media] v4l: xilinx: Add Test Pattern Generator driver 2015-04-03 01:04:18 -03:00
xilinx-dma.c [media] media: videobuf2: Change queue_setup argument 2015-10-20 14:48:39 -02:00
xilinx-dma.h [media] media: videobuf2: Replace videobuf2-core with videobuf2-v4l2 2015-10-01 08:48:18 -03:00
xilinx-tpg.c [media] v4l: xilinx-tpg: add missing of_node_put 2015-11-19 09:26:55 -02:00
xilinx-vip.c
xilinx-vip.h
xilinx-vipp.c [media] v4l: xilinx-vipp: add missing of_node_put 2015-11-19 09:27:17 -02:00
xilinx-vipp.h
xilinx-vtc.c
xilinx-vtc.h