1
0
Fork 0
mirror of https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git synced 2025-01-26 18:43:33 -05:00
linux/drivers/bus
Amitoj Kaur Chawla d99875eebf bus: vexpress-config: Add missing of_node_put
for_each_compatible_node performs an of_node_get on each iteration, so
to break out of the loop an of_node_put is required.

Found using Coccinelle. The semantic patch used for this is as follows:

// <smpl>
@@
expression e;
local idexpression n;
@@

 for_each_compatible_node(n, ...) {
   ... when != of_node_put(n)
       when != e = n
(
   return n;
+  of_node_put(n);
?  return ...;
)
   ...
 }
// </smpl>

Acked-by: Liviu Dudau <Liviu.Dudau@arm.com>
Signed-off-by: Amitoj Kaur Chawla <amitoj1606@gmail.com>
Signed-off-by: Sudeep Holla <sudeep.holla@arm.com>
2016-02-01 09:59:58 +00:00
..
arm-cci.c
arm-ccn.c bus: arm-ccn: Fix irq affinity setting on CPU migration 2015-10-15 17:10:15 +02:00
brcmstb_gisb.c
imx-weim.c
Kconfig bus: uniphier: allow only built-in driver 2015-12-31 23:46:29 +01:00
Makefile bus: uniphier-system-bus: add UniPhier System Bus driver 2015-12-22 11:22:39 -08:00
mips_cdmm.c
mvebu-mbus.c
omap-ocp2scp.c bus: omap-ocp2scp: Fix module alias 2015-10-12 16:10:04 -07:00
omap_l3_noc.c
omap_l3_noc.h
omap_l3_smx.c
omap_l3_smx.h
simple-pm-bus.c
sunxi-rsb.c bus: sunxi-rsb: Fix peripheral IC mapping runtime address 2015-12-22 11:42:30 -08:00
uniphier-system-bus.c bus: uniphier-system-bus: add UniPhier System Bus driver 2015-12-22 11:22:39 -08:00
vexpress-config.c bus: vexpress-config: Add missing of_node_put 2016-02-01 09:59:58 +00:00