linux/arch/powerpc/platforms/iseries
Julia Lawall af449c330e [POWERPC] arch/powerpc: Add missing of_node_put
There should be an of_node_put when breaking out of a loop that iterates
over calls to of_find_all_nodes, as this function does an of_node_get on
the value it returns.

This was fixed using the following semantic patch.
(http://www.emn.fr/x-info/coccinelle/)

// <smpl>
@@
type T;
identifier d;
expression e;
@@

T *d;
...
for (d = NULL; (d = of_find_all_nodes(d)) != NULL; )
 {... when != of_node_put(d)
      when != e = d
(
   return d;
|
+  of_node_put(d);
?  return ...;
)
...}
// </smpl>

Signed-off-by: Julia Lawall <julia@diku.dk>
Cc: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Paul Mackerras <paulus@samba.org>
2007-12-20 17:13:51 +11:00
..
call_hpt.h [POWERPC] Kill typedef-ed structs for hash PTEs and BATs 2007-06-14 22:30:16 +10:00
call_pci.h [PATCH] powerpc: reintroduce HvCallPci_configLoad32 2006-05-24 16:08:56 +10:00
call_sm.h
dt.c [POWERPC] iSeries: Move viodasd probing 2007-10-11 20:40:48 +10:00
exception.h [POWERPC] Exception numbers are not relevant to iSeries 2007-08-22 16:48:36 +10:00
exception.S [POWERPC] Exception numbers are not relevant to iSeries 2007-08-22 16:48:36 +10:00
htab.c [POWERPC] Fix iSeries_hpte_insert prototype 2007-10-17 22:30:08 +10:00
hvcall.S
hvlog.c
hvlpconfig.c [POWERPC] iseries: Move ItLpNaca into platforms/iseries 2006-07-13 18:42:52 +10:00
iommu.c [POWERPC] arch/powerpc: Add missing of_node_put 2007-12-20 17:13:51 +11:00
ipl_parms.h
irq.c [POWERPC] Invert null match behaviour for irq_hosts 2007-09-14 01:33:20 +10:00
irq.h [POWERPC] iSeries_init_IRQ non-PCI tidy 2007-11-08 14:15:33 +11:00
it_exp_vpd_panel.h [POWERPC] iseries: Make ItExtVpdPanel private to iSeries 2006-07-13 18:42:29 +10:00
it_lp_naca.h [POWERPC] Typo fixes interrrupt -> interrupt 2007-08-17 11:01:51 +10:00
Kconfig [POWERPC] iSeries: Make HVC_ISERIES the default 2007-05-09 16:35:00 +10:00
ksyms.c [POWERPC] Lazy interrupt disabling for 64-bit machines 2006-10-16 16:31:36 +10:00
lpardata.c [POWERPC] iseries: Move ItLpNaca into platforms/iseries 2006-07-13 18:42:52 +10:00
lpevents.c [POWERPC] iSeries: Fix unregistering HV event handlers 2007-12-20 16:11:46 +11:00
main_store.h [POWERPC] iseries: remove some gcc 4.1 warnings 2006-08-25 13:27:35 +10:00
Makefile [POWERPC] iSeries: Merge vpdinfo.c into pci.c 2007-12-11 13:46:11 +11:00
mf.c [POWERPC] Remove iSeries_vio_dev 2007-10-11 20:40:45 +10:00
misc.S [POWERPC] Lazy interrupt disabling for 64-bit machines 2006-10-16 16:31:36 +10:00
naca.h
pci.c [POWERPC] fix iSeries PCI resource management 2007-12-20 16:18:10 +11:00
pci.h [POWERPC] fix iSeries PCI resource management 2007-12-20 16:18:10 +11:00
proc.c [PATCH] mark struct file_operations const 2 2007-02-12 09:48:44 -08:00
processor_vpd.h
release_data.h
setup.c [POWERPC] fix iSeries PCI resource management 2007-12-20 16:18:10 +11:00
setup.h [POWERPC] iSeries: Fix sparse warnings in setup.c 2007-12-03 13:56:27 +11:00
smp.c header cleaning: don't include smp_lock.h when not used 2007-05-08 11:15:07 -07:00
smp.h [POWERPC] Fix iseries/smp.c for irq breakage 2006-10-07 10:10:30 +10:00
spcomm_area.h
vio.c [POWERPC] iSeries: Fix ref counting in vio setup 2007-11-08 14:15:33 +11:00
viopath.c [POWERPC] Remove iSeries_vio_dev 2007-10-11 20:40:45 +10:00
vpd_areas.h