[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 <adurbin@google.com>
Signed-off-by: Andi Kleen <ak@suse.de>

authored by Aaron Durbin and committed by Andi Kleen 14f448e3 64e72e41

+1 -1
+1 -1
arch/x86_64/kernel/e820.c
··· 278 278 >> PAGE_SHIFT; 279 279 280 280 /* Skip map entries smaller than a page */ 281 - if (ei_startpfn > ei_endpfn) 281 + if (ei_startpfn >= ei_endpfn) 282 282 continue; 283 283 284 284 /* Check if end_pfn_map should be updated */