X-Git-Url: http://pilppa.org/gitweb/gitweb.cgi?a=blobdiff_plain;f=arch%2Fx86%2Fboot%2Fmemory.c;h=8c3c25f35578a00c140440131a69ae539038f950;hb=921974982a7aab561a1c3ff1763af7470874ba8e;hp=e77d89f9e8aa23c13751bee268718e8ed7ee54a7;hpb=2f633928cbba8a5858bb39b11e7219a41b0fbef5;p=linux-2.6-omap-h63xx.git diff --git a/arch/x86/boot/memory.c b/arch/x86/boot/memory.c index e77d89f9e8a..8c3c25f3557 100644 --- a/arch/x86/boot/memory.c +++ b/arch/x86/boot/memory.c @@ -9,8 +9,6 @@ * ----------------------------------------------------------------------- */ /* - * arch/i386/boot/memory.c - * * Memory detection code */ @@ -55,7 +53,7 @@ static int detect_memory_e820(void) count++; desc++; - } while (next && count < E820MAX); + } while (next && count < ARRAY_SIZE(boot_params.e820_map)); return boot_params.e820_entries = count; }