powerpc/pasemi: Fix refcount leak bug
PATCH 1/1 powerpc/pasemi: Fix refcount leak bug
In pas_pci_init(), we need one of_node_put() for of_find_node_by_path() to keep refcount balance.
Signed-off-by Liang He <[email protected]>
--- arch/powerpc/platforms/pasemi/pci.c | 1 + 1 file changed, 1 insertion(+)
arch/powerpc/platforms/pasemi/pci.c +1 -0
@@ -282,6 +282,7 @@ void __init pas_pci_init(void)pci_set_flags (PCI_SCAN_ALL_PCIE_DEVS ); np =of_find_compatible_node (root,NULL ,"pasemi,rootbus" ); +of_node_put (root);if (np) { res =pas_add_bridge (np);of_node_put (np);
Signature · 1 line
2.25.1