[PATCH 1/1] pci: host: pci-layerscape: add missing of_node_put after calling of_parse_phandle
Peter Chen
peter.chen at nxp.com
Fri Aug 12 11:34:41 AEST 2016
of_node_put needs to be called when the device node which is got
from of_parse_phandle has finished using.
Cc: Minghuan Lian <minghuan.Lian at freescale.com>
Cc: Mingkai Hu <mingkai.hu at freescale.com>
Cc: Roy Zang <tie-fei.zang at freescale.com>
Signed-off-by: Peter Chen <peter.chen at nxp.com>
---
drivers/pci/host/pci-layerscape.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/drivers/pci/host/pci-layerscape.c b/drivers/pci/host/pci-layerscape.c
index 114ba81..573b996 100644
--- a/drivers/pci/host/pci-layerscape.c
+++ b/drivers/pci/host/pci-layerscape.c
@@ -173,6 +173,8 @@ static int ls_pcie_msi_host_init(struct pcie_port *pp,
return -EINVAL;
}
+ of_node_put(msi_node);
+
return 0;
}
--
1.9.1
More information about the Linuxppc-dev
mailing list