X-Git-Url: https://git.openpandora.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=arch%2Fx86%2Fkernel%2Fe820.c;h=147005a1cc3cf6cd85579fb6809e6eafe38dcb66;hb=66a4fe0cb80a9fde8cb173289afb863fd279466a;hp=5cb5725b2bae26b97ab1f080599a13ab09cc9770;hpb=49ed657356121c2a8fa1f5c2ab38496b95f6fe6a;p=pandora-kernel.git diff --git a/arch/x86/kernel/e820.c b/arch/x86/kernel/e820.c index 5cb5725b2bae..147005a1cc3c 100644 --- a/arch/x86/kernel/e820.c +++ b/arch/x86/kernel/e820.c @@ -115,7 +115,7 @@ static void __init __e820_add_region(struct e820map *e820x, u64 start, u64 size, { int x = e820x->nr_map; - if (x == ARRAY_SIZE(e820x->map)) { + if (x >= ARRAY_SIZE(e820x->map)) { printk(KERN_ERR "Ooops! Too many entries in the memory map!\n"); return; }