android_kernel_xiaomi_sm8350/arch/powerpc/platforms
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
..
8xx [POWERPC] 8xx: Convert mpc866ads to the new device binding. 2007-12-13 22:45:35 -06:00
40x [POWERPC] 4xx: Replace #includes of asm/of_platform.h with linux/of_platform.h. 2007-11-19 08:13:08 -06:00
44x [POWERPC] 4xx: Replace #includes of asm/of_platform.h with linux/of_platform.h. 2007-11-19 08:13:08 -06:00
52xx [POWERPC] pci32: Add flags modifying the PCI code behaviour 2007-12-20 16:18:07 +11:00
82xx [POWERPC] pci32: Add flags modifying the PCI code behaviour 2007-12-20 16:18:07 +11:00
83xx [POWERPC] pci32: Add flags modifying the PCI code behaviour 2007-12-20 16:18:07 +11:00
85xx [POWERPC] 8xxx: Convert #include of asm/of_{platform, device}.h into linux/of_{platform, device}.h. 2007-12-11 13:57:17 -06:00
86xx [POWERPC] pci_controller->arch_data really is a struct device_node * 2007-12-11 13:42:37 +11:00
cell [POWERPC] celleb: Split machine definition 2007-12-20 16:15:30 +11:00
celleb [POWERPC] celleb: Split machine definition 2007-12-20 16:15:30 +11:00
chrp [POWERPC] CHRP: Fix possible NULL pointer dereference 2007-12-20 17:13:34 +11:00
embedded6xx [POWERPC] holly.c: Remove unnecessary include of linux/ide.h 2007-12-20 16:17:51 +11:00
iseries [POWERPC] arch/powerpc: Add missing of_node_put 2007-12-20 17:13:51 +11:00
maple [POWERPC] pci_controller->arch_data really is a struct device_node * 2007-12-11 13:42:37 +11:00
pasemi [POWERPC] pasemi: Implement MSI support 2007-12-20 16:15:23 +11:00
powermac [POWERPC] arch/powerpc: Remove duplicate includes 2007-12-20 17:13:50 +11:00
prep
ps3 Update arch/ to use sg helpers 2007-10-22 21:19:59 +02:00
pseries [POWERPC] Merge PCI resource fixups 2007-12-20 16:18:09 +11:00
fsl_uli1575.c
Kconfig typo fixes 2007-10-20 01:34:40 +02:00
Kconfig.cputype [POWERPC] 4xx: Split early debug output and early boot console for 44x 2007-10-19 16:18:18 -05:00
Makefile