summaryrefslogtreecommitdiffstats
path: root/arch/powerpc
diff options
context:
space:
mode:
authorTyrel Datwyler2013-08-15 07:23:51 +0200
committerBenjamin Herrenschmidt2013-08-27 06:45:15 +0200
commit14cd820a2a45a1f7b216c6ca9104c91d52564fbf (patch)
treec8011debe818cb3ffdd46f076769e1ac1f2d8f23 /arch/powerpc
parentpowerpc/pseries: Make dlpar_configure_connector parent node aware (diff)
downloadkernel-qcow2-linux-14cd820a2a45a1f7b216c6ca9104c91d52564fbf.tar.gz
kernel-qcow2-linux-14cd820a2a45a1f7b216c6ca9104c91d52564fbf.tar.xz
kernel-qcow2-linux-14cd820a2a45a1f7b216c6ca9104c91d52564fbf.zip
powerpc/pseries: Add mising of_node_put in delete_dt_node
The node to be detached is retrieved via its phandle by a call to of_find_node_by_phandle which increments the ref count. We need a matching call to of_node_put to decrement the ref count and ensure the node is actually freed. Signed-off-by: Tyrel Datwyler <tyreld@linux.vnet.ibm.com> Acked-by: Nathan Fontenot <nfont@linux.vnet.ibm.com> Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Diffstat (limited to 'arch/powerpc')
-rw-r--r--arch/powerpc/platforms/pseries/mobility.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/arch/powerpc/platforms/pseries/mobility.c b/arch/powerpc/platforms/pseries/mobility.c
index ff102e27a3dc..cde4e0a095ae 100644
--- a/arch/powerpc/platforms/pseries/mobility.c
+++ b/arch/powerpc/platforms/pseries/mobility.c
@@ -62,6 +62,7 @@ static int delete_dt_node(u32 phandle)
return -ENOENT;
dlpar_detach_node(dn);
+ of_node_put(dn);
return 0;
}