mm/memory_hotplug: make remove_memory() take the device_hotplug_lock
[muen/linux.git] / drivers / acpi / acpi_memhotplug.c
index 6b0d3ef7309cb710a63b38848ad35b770fed3c1a..811148415993596a23b19e82438d7b88c1638aef 100644 (file)
@@ -282,7 +282,7 @@ static void acpi_memory_remove_memory(struct acpi_memory_device *mem_device)
                        nid = memory_add_physaddr_to_nid(info->start_addr);
 
                acpi_unbind_memory_blocks(info);
-               remove_memory(nid, info->start_addr, info->length);
+               __remove_memory(nid, info->start_addr, info->length);
                list_del(&info->list);
                kfree(info);
        }