Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 14f448e3 authored by Aaron Durbin's avatar Aaron Durbin Committed by Andi Kleen
Browse files

[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: default avatarAaron Durbin <adurbin@google.com>
Signed-off-by: default avatarAndi Kleen <ak@suse.de>
parent 64e72e41
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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 */