diff options
author | Phil Carmody <pc+lkml@asdf.org> | 2014-09-17 01:00:54 +0300 |
---|---|---|
committer | Benjamin Herrenschmidt <benh@kernel.crashing.org> | 2015-03-17 11:56:51 +1100 |
commit | e702240e8364952e260829c8700fbc870aa4b053 (patch) | |
tree | bf26df8c5883058515bff0c4c6bb13d48208a485 /drivers/macintosh | |
parent | ffa3eb010dd8edc696cd958ba684d8a6d1cf3dff (diff) | |
download | op-kernel-dev-e702240e8364952e260829c8700fbc870aa4b053.zip op-kernel-dev-e702240e8364952e260829c8700fbc870aa4b053.tar.gz |
powerpc/via-pmu: fix OF node leak in Keylargo init
If we of_find_node_by_name() then we must of_node_put() too.
Signed-off-by: Phil Carmody <pc+lkml@asdf.org>
Signed-off-by: Aaro Koskinen <aaro.koskinen@iki.fi>
Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Diffstat (limited to 'drivers/macintosh')
-rw-r--r-- | drivers/macintosh/via-pmu.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/macintosh/via-pmu.c b/drivers/macintosh/via-pmu.c index 6221235..aed3cb0 100644 --- a/drivers/macintosh/via-pmu.c +++ b/drivers/macintosh/via-pmu.c @@ -329,6 +329,7 @@ int __init find_via_pmu(void) gaddr = of_translate_address(gpiop, reg); if (gaddr != OF_BAD_ADDR) gpio_reg = ioremap(gaddr, 0x10); + of_node_put(gpiop); } if (gpio_reg == NULL) { printk(KERN_ERR "via-pmu: Can't find GPIO reg !\n"); |