diff options
author | Roy Franz <roy.franz@linaro.org> | 2013-07-24 17:48:44 -0700 |
---|---|---|
committer | Matt Fleming <matt.fleming@intel.com> | 2013-07-26 15:22:32 +0100 |
commit | df981edcb9bce00b9c5e4f3cc33f3f98bc9a2394 (patch) | |
tree | fe538ffc6efbde012dd47ef7629462beac470735 | |
parent | 3b2f64d00c46e1e4e9bd0bb9bb12619adac27a4b (diff) | |
download | op-kernel-dev-df981edcb9bce00b9c5e4f3cc33f3f98bc9a2394.zip op-kernel-dev-df981edcb9bce00b9c5e4f3cc33f3f98bc9a2394.tar.gz |
x86, efi: correct call to free_pages
Specify memory size in pages, not bytes.
Signed-off-by: Roy Franz <roy.franz@linaro.org>
Signed-off-by: Matt Fleming <matt.fleming@intel.com>
-rw-r--r-- | arch/x86/boot/compressed/eboot.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/x86/boot/compressed/eboot.c b/arch/x86/boot/compressed/eboot.c index d606463..b7388a4 100644 --- a/arch/x86/boot/compressed/eboot.c +++ b/arch/x86/boot/compressed/eboot.c @@ -225,7 +225,7 @@ static void low_free(unsigned long size, unsigned long addr) unsigned long nr_pages; nr_pages = round_up(size, EFI_PAGE_SIZE) / EFI_PAGE_SIZE; - efi_call_phys2(sys_table->boottime->free_pages, addr, size); + efi_call_phys2(sys_table->boottime->free_pages, addr, nr_pages); } static void find_bits(unsigned long mask, u8 *pos, u8 *size) |