aboutsummaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
Diffstat (limited to 'drivers')
-rw-r--r--drivers/acpi/acpi_memhotplug.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/acpi/acpi_memhotplug.c b/drivers/acpi/acpi_memhotplug.c
index 1dda370f402b..98099de59b45 100644
--- a/drivers/acpi/acpi_memhotplug.c
+++ b/drivers/acpi/acpi_memhotplug.c
@@ -238,6 +238,10 @@ static int acpi_memory_enable_device(struct acpi_memory_device *mem_device)
238 num_enabled++; 238 num_enabled++;
239 continue; 239 continue;
240 } 240 }
241
242 if (node < 0)
243 node = memory_add_physaddr_to_nid(info->start_addr);
244
241 result = add_memory(node, info->start_addr, info->length); 245 result = add_memory(node, info->start_addr, info->length);
242 if (result) 246 if (result)
243 continue; 247 continue;