]> git.kernelconcepts.de Git - karo-tx-linux.git/blobdiff - arch/powerpc/mm/numa.c
powerpc/numa: Remove double of_node_put in hot_add_node_scn_to_nid
[karo-tx-linux.git] / arch / powerpc / mm / numa.c
index 2164006fe170f8e0e8a7adddd67e78803872c9e2..2c1ae7a5fb53c79ee09eff79f6a94e07f2cf7f53 100644 (file)
@@ -1214,11 +1214,12 @@ int hot_add_node_scn_to_nid(unsigned long scn_addr)
                        break;
                }
 
-               of_node_put(memory);
                if (nid >= 0)
                        break;
        }
 
+       of_node_put(memory);
+
        return nid;
 }