From: Aaron Durbin Date: Tue, 14 Nov 2006 15:57:45 +0000 (+0100) Subject: [PATCH] x86-64: Fix partial page check to ensure unusable memory is not being marked... X-Git-Tag: v2.6.19-rc6~7^2~7 X-Git-Url: http://pilppa.com/gitweb/?a=commitdiff_plain;h=14f448e36192d6d2cd7dfd81cb044977b2f9dd9b;p=linux-2.6-omap-h63xx.git [PATCH] x86-64: Fix partial page check to ensure unusable memory is not being marked usable. Fix partial page check in e820_register_active_regions to ensure partial pages are not being marked as active in the memory pool. Signed-off-by: Aaron Durbin Signed-off-by: Andi Kleen --- diff --git a/arch/x86_64/kernel/e820.c b/arch/x86_64/kernel/e820.c index a75c829c2b0..855b5611318 100644 --- a/arch/x86_64/kernel/e820.c +++ b/arch/x86_64/kernel/e820.c @@ -278,7 +278,7 @@ e820_register_active_regions(int nid, unsigned long start_pfn, >> PAGE_SHIFT; /* Skip map entries smaller than a page */ - if (ei_startpfn > ei_endpfn) + if (ei_startpfn >= ei_endpfn) continue; /* Check if end_pfn_map should be updated */