Skip to content

Commit

Permalink
[PATCH] x86-64: Fix partial page check to ensure unusable memory is n…
Browse files Browse the repository at this point in the history
…ot 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>
  • Loading branch information
Aaron Durbin authored and Andi Kleen committed Nov 14, 2006
1 parent 64e72e4 commit 14f448e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion arch/x86_64/kernel/e820.c
Original file line number Diff line number Diff line change
Expand Up @@ -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 */
Expand Down

0 comments on commit 14f448e

Please sign in to comment.