OpenCloudOS-Kernel/drivers/media
Julia Lawall cc331d37fe [media] v4l: xilinx-tpg: 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:26:55 -02:00
..
common [media] include/media: move driver interface headers to a separate dir 2015-11-17 06:57:29 -02:00
dvb-core [media] media: dvb-core: Don't force CAN_INVERSION_AUTO in oneshot mode 2015-11-18 13:27:03 -02:00
dvb-frontends [media] stb6100: get rid of get_state()/set_state() 2015-11-17 06:45:05 -02:00
firewire [media] dvb: Get rid of typedev usage for enums 2015-06-09 17:47:35 -03:00
i2c [media] s5c73m3-spi: fix compilation breakage when compiled as Module 2015-11-18 16:49:18 -02:00
mmc [media] siano: register media controller earlier 2015-02-26 09:10:39 -03:00
pci [media] ddbridge: fix wait_event_timeout return handling 2015-11-18 12:21:29 -02:00
platform [media] v4l: xilinx-tpg: add missing of_node_put 2015-11-19 09:26:55 -02:00
radio [media] radio-shark2: constify radio_tea5777_ops structures 2015-11-17 14:52:15 -02:00
rc [media] rc: allow rc modules to be loaded if rc-main is not a module 2015-11-19 08:41:06 -02:00
tuners [media] si2157: return -EINVAL if firmware blob is too big 2015-11-19 08:39:52 -02:00
usb [media] as102: fix potential double free in as102_fw_upload() 2015-11-19 09:16:10 -02:00
v4l2-core [media] v4l2-clk: v4l2_clk_get() also need to find the of_fullname clock 2015-11-17 15:19:52 -02:00
Kconfig media updates for v4.2-rc1 2015-06-25 17:55:48 -07:00
Makefile [media] bq/c-qcam, w9966, pms: move to staging in preparation for removal 2014-12-16 23:21:44 -02:00
media-device.c [media] media: Use strlcpy instead of custom code 2014-09-21 20:27:08 -03:00
media-devnode.c [media] media-devnode: just return 0 instead of using a var 2014-09-03 17:59:28 -03:00
media-entity.c [media] media-entity.c: get rid of var length arrays 2015-10-01 18:10:05 -03:00