diff options
Diffstat (limited to 'arch/x86/mach-default')
-rw-r--r-- | arch/x86/mach-default/setup.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/arch/x86/mach-default/setup.c b/arch/x86/mach-default/setup.c index 0c28a071824c..38a856c4fc07 100644 --- a/arch/x86/mach-default/setup.c +++ b/arch/x86/mach-default/setup.c | |||
@@ -163,7 +163,9 @@ char * __init machine_specific_memory_setup(void) | |||
163 | * Otherwise fake a memory map; one section from 0k->640k, | 163 | * Otherwise fake a memory map; one section from 0k->640k, |
164 | * the next section from 1mb->appropriate_mem_k | 164 | * the next section from 1mb->appropriate_mem_k |
165 | */ | 165 | */ |
166 | sanitize_e820_map(boot_params.e820_map, &boot_params.e820_entries); | 166 | sanitize_e820_map(boot_params.e820_map, |
167 | ARRAY_SIZE(boot_params.e820_map), | ||
168 | &boot_params.e820_entries); | ||
167 | if (copy_e820_map(boot_params.e820_map, boot_params.e820_entries) | 169 | if (copy_e820_map(boot_params.e820_map, boot_params.e820_entries) |
168 | < 0) { | 170 | < 0) { |
169 | unsigned long mem_size; | 171 | unsigned long mem_size; |