Commit 2aaf0a19 authored by Dmitry Torokhov's avatar Dmitry Torokhov Committed by Michael Ellerman

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: default avatarDmitry Torokhov <dmitry.torokhov@gmail.com>
Signed-off-by: default avatarMichael Ellerman <mpe@ellerman.id.au>
parent f2c2cbcc
...@@ -604,6 +604,7 @@ static int pmacpic_find_viaint(void) ...@@ -604,6 +604,7 @@ static int pmacpic_find_viaint(void)
if (np == NULL) if (np == NULL)
goto not_found; goto not_found;
viaint = irq_of_parse_and_map(np, 0); viaint = irq_of_parse_and_map(np, 0);
of_node_put(np);
not_found: not_found:
#endif /* CONFIG_ADB_PMU */ #endif /* CONFIG_ADB_PMU */
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment