aboutsummaryrefslogtreecommitdiffstats
path: root/mm/memory_hotplug.c
diff options
context:
space:
mode:
Diffstat (limited to 'mm/memory_hotplug.c')
-rw-r--r--mm/memory_hotplug.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/mm/memory_hotplug.c b/mm/memory_hotplug.c
index 02159c755136..78dba9f04b5b 100644
--- a/mm/memory_hotplug.c
+++ b/mm/memory_hotplug.c
@@ -521,7 +521,7 @@ int mem_online_node(int nid)
521 521
522 lock_memory_hotplug(); 522 lock_memory_hotplug();
523 pgdat = hotadd_new_pgdat(nid, 0); 523 pgdat = hotadd_new_pgdat(nid, 0);
524 if (pgdat) { 524 if (!pgdat) {
525 ret = -ENOMEM; 525 ret = -ENOMEM;
526 goto out; 526 goto out;
527 } 527 }