Message ID | 20200812210228.Z9NG7Ie2s%akpm@linux-foundation.org |
---|---|
State | New |
Headers | show |
Series | [merged] mm-memory_hotplug-fix-unpaired-mem_hotplug_begin-done.patch removed from -mm tree | expand |
--- a/mm/memory_hotplug.c~mm-memory_hotplug-fix-unpaired-mem_hotplug_begin-done +++ a/mm/memory_hotplug.c @@ -1757,7 +1757,7 @@ static int __ref try_remove_memory(int n */ rc = walk_memory_blocks(start, size, NULL, check_memblock_offlined_cb); if (rc) - goto done; + return rc; /* remove memmap entry */ firmware_map_remove(start, start + size, "System RAM"); @@ -1781,9 +1781,8 @@ static int __ref try_remove_memory(int n try_offline_node(nid); -done: mem_hotplug_done(); - return rc; + return 0; } /**