diff options
author | Dmitry Torokhov <dmitry.torokhov@gmail.com> | 2017-01-31 09:43:55 -0800 |
---|---|---|
committer | Michael Ellerman <mpe@ellerman.id.au> | 2017-12-04 11:54:34 +1100 |
commit | 2aaf0a198d7af53a946ad69976d3cc7e7673d13f (patch) | |
tree | 4113c9b802bfc5f269f072d818fc6f9cd274e975 /arch/powerpc/platforms/powermac | |
parent | f2c2cbcc35d47f1471a04155ac357521f5170371 (diff) | |
download | linux-2aaf0a198d7af53a946ad69976d3cc7e7673d13f.tar.bz2 |
powerpc/powermac: fix OF node refcount leak
We need to call of_node_put() for device nodes obtained with
of_find_node_by_name().
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Diffstat (limited to 'arch/powerpc/platforms/powermac')
-rw-r--r-- | arch/powerpc/platforms/powermac/pic.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/arch/powerpc/platforms/powermac/pic.c b/arch/powerpc/platforms/powermac/pic.c index 5e0719b27294..666fceda5e48 100644 --- a/arch/powerpc/platforms/powermac/pic.c +++ b/arch/powerpc/platforms/powermac/pic.c @@ -604,6 +604,7 @@ static int pmacpic_find_viaint(void) if (np == NULL) goto not_found; viaint = irq_of_parse_and_map(np, 0); + of_node_put(np); not_found: #endif /* CONFIG_ADB_PMU */ |