Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

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

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
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -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 */