WSL2-Linux-Kernel/arch/powerpc/platforms
Julia Lawall bad5232ba2 [POWERPC] Add missing of_node_put in pseries/nvram.c
of_node_put is needed before discarding a value received from
of_find_node_by_type, eg in error handling code.

The semantic patch that makes the change is as follows:
(http://www.emn.fr/x-info/coccinelle/)

// <smpl>
@@
struct device_node *n;
struct device_node *n1;
struct device_node *n2;
statement S;
identifier f1,f2;
expression E1,E2;
constant C;
@@

n = of_find_node_by_type(...)
...
if (!n) S
... when != of_node_put(n)
    when != n1 = f1(n,...)
    when != E1 = n
    when any
    when strict
(
+ of_node_put(n);
  return -C;
|
  of_node_put(n);
|
  n2 = f2(n,...)
|
  E2 = n
|
  return ...;
)
// </smpl>

Signed-off-by: Julia Lawall <julia@diku.dk>
Acked-by: Stephen Rothwell <sfr@canb.auug.org.au>
Signed-off-by: Paul Mackerras <paulus@samba.org>
2008-06-16 15:00:32 +10:00
..
8xx [POWERPC] CPM: Always use new binding. 2008-04-17 01:01:40 -05:00
40x [POWERPC] 4xx: Create common ppc4xx_reset_system() in ppc4xx_soc.c 2008-04-02 20:44:56 -05:00
44x [POWERPC] 4xx: Add idle wait support for 44x platforms 2008-04-16 07:32:06 -05:00
52xx mpc52xx_gpio iomem annotations 2008-06-04 08:06:02 -07:00
82xx Merge branch 'master' of git://git.kernel.org/pub/scm/linux/kernel/git/paulus/powerpc 2008-04-21 15:50:49 -07:00
83xx [POWERPC] 83xx: mpc8315 - fix USB UTMI Host setup 2008-04-17 09:52:50 -05:00
85xx [POWERPC] 85xx: MPC85xx MDS - Unconditionally select PHYLIB for board fixups 2008-06-09 08:45:07 -05:00
86xx [POWERPC] 86xx: mpc8610_hpcd: fix second serial port 2008-05-13 08:53:48 -05:00
512x [POWERPC] Remove unused CONFIG_WANT_DEVICE_TREE 2008-02-14 22:11:03 +11:00
cell powerpc/spufs: fix missed stop-and-signal event 2008-06-16 14:35:01 +10:00
chrp mv643xx_eth: get rid of static variables, allow multiple instances 2008-04-28 21:17:07 -07:00
embedded6xx [POWERPC] mv64x60: Fix FDT compatible names: mv64x60 => mv64360 2008-04-15 21:21:24 +10:00
iseries powerpc: use non-racy method for proc entries creation 2008-04-29 08:06:22 -07:00
maple [POWERPC] maple: Kill fixup_maple_ide 2008-03-26 08:44:04 +11:00
pasemi i2c: Switch pasemi to the new device/driver matching scheme 2008-05-18 20:49:40 +02:00
powermac [POWERPC] Fix building of pmac32 when CONFIG_NVRAM=m 2008-04-29 15:57:34 +10:00
prep [POWERPC] Split several platforms into their respective Kconfig file 2007-03-22 10:07:32 -05:00
ps3 [POWERPC] PS3: Fix memory hotplug 2008-05-23 16:15:29 +10:00
pseries [POWERPC] Add missing of_node_put in pseries/nvram.c 2008-06-16 15:00:32 +10:00
Kconfig [POWERPC] celleb: Move the files for celleb base support 2008-04-24 21:08:13 +10:00
Kconfig.cputype [POWERPC] Raise the upper limit of NR_CPUS and move the pacas into the BSS 2008-04-24 20:58:04 +10:00
Makefile [POWERPC] celleb: Move miscellaneous files for Beat 2008-04-24 21:08:14 +10:00
fsl_uli1575.c [POWERPC] Fix interrupt routing and setup of ULI M1575 on FSL boards 2007-08-17 13:22:16 -05:00