提交 2aaf0a19 编写于 作者: D Dmitry Torokhov 提交者: 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: NDmitry Torokhov <dmitry.torokhov@gmail.com>
Signed-off-by: NMichael Ellerman <mpe@ellerman.id.au>
上级 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% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册