powerpc/powermac: fix OF node refcount leak
Subsystems (2)
PATCH 1/1 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 <[email protected]>
---
Found by visual inspection, not tested...
arch/powerpc/platforms/powermac/pic.c | 1 + 1 file changed, 1 insertion(+)
arch/powerpc/platforms/powermac/pic.c +1 -0
@@ -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 */
Signature · 5 lines
2.11.0.483.g087da7b7c-goog -- Dmitry
Michael Ellerman
AppliedQuoted 4 lines · Dmitry Torokhov
We need to call
of_node_put()for device nodes obtained withof_find_node_by_name().Signed-off-by Dmitry Torokhov <[email protected]>
Applied to powerpc next, thanks.
https://git.kernel.org/powerpc/c/2aaf0a198d7af53a946ad69976d3cc
cheers