]> git.karo-electronics.de Git - linux-beck.git/blobdiff - arch/x86/mach-default/setup.c
x86 boot: proper use of ARRAY_SIZE instead of repeated E820MAX constant
[linux-beck.git] / arch / x86 / mach-default / setup.c
index 0c28a071824c2bd0789eb9c7d929615e8ba944d1..38a856c4fc07a891d5e5705789135e8431858d53 100644 (file)
@@ -163,7 +163,9 @@ char * __init machine_specific_memory_setup(void)
         * Otherwise fake a memory map; one section from 0k->640k,
         * the next section from 1mb->appropriate_mem_k
         */
-       sanitize_e820_map(boot_params.e820_map, &boot_params.e820_entries);
+       sanitize_e820_map(boot_params.e820_map,
+                       ARRAY_SIZE(boot_params.e820_map),
+                       &boot_params.e820_entries);
        if (copy_e820_map(boot_params.e820_map, boot_params.e820_entries)
            < 0) {
                unsigned long mem_size;