diff options
author | Dmitry Torokhov <dmitry.torokhov@gmail.com> | 2017-01-31 20:43:55 +0300 |
---|---|---|
committer | Michael Ellerman <mpe@ellerman.id.au> | 2017-12-04 03:54:34 +0300 |
commit | 2aaf0a198d7af53a946ad69976d3cc7e7673d13f (patch) | |
tree | 4113c9b802bfc5f269f072d818fc6f9cd274e975 | |
parent | f2c2cbcc35d47f1471a04155ac357521f5170371 (diff) | |
download | linux-2aaf0a198d7af53a946ad69976d3cc7e7673d13f.tar.xz |
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>
-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 */ |