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

Commit ae74589c authored by bibo,mao's avatar bibo,mao Committed by Linus Torvalds
Browse files

[PATCH] fix efi_memory_present_wrapper()



efi_memory_present_wrapper() parameter start/end is physical address, but
function memory_present parameter is PFN, this patch converts physical
address to PFN.

Signed-off-by: default avatarbibo, mao <bibo.mao@intel.com>
Cc: Andi Kleen <ak@suse.de>
Signed-off-by: default avatarAndrew Morton <akpm@osdl.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@osdl.org>
parent 9b57988d
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -846,7 +846,7 @@ efi_find_max_pfn(unsigned long start, unsigned long end, void *arg)
static int __init
efi_memory_present_wrapper(unsigned long start, unsigned long end, void *arg)
{
	memory_present(0, start, end);
	memory_present(0, PFN_UP(start), PFN_DOWN(end));
	return 0;
}