]> rtime.felk.cvut.cz Git - linux-imx.git/commitdiff
x86, efi: correct call to free_pages
authorRoy Franz <roy.franz@linaro.org>
Thu, 25 Jul 2013 00:48:44 +0000 (17:48 -0700)
committerMatt Fleming <matt.fleming@intel.com>
Fri, 26 Jul 2013 14:22:32 +0000 (15:22 +0100)
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>
arch/x86/boot/compressed/eboot.c

index d606463aa6d63bfdab5641e6bd7e6b68545e32d9..b7388a425f0994ba87a30a27fe8ba57d7e3e5457 100644 (file)
@@ -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)