aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--arch/x86/mm/init_64.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/arch/x86/mm/init_64.c b/arch/x86/mm/init_64.c
index 5fe880fc305d..620d2b6b6bf4 100644
--- a/arch/x86/mm/init_64.c
+++ b/arch/x86/mm/init_64.c
@@ -532,9 +532,9 @@ void __init mem_init(void)
532 532
533void free_init_pages(char *what, unsigned long begin, unsigned long end) 533void free_init_pages(char *what, unsigned long begin, unsigned long end)
534{ 534{
535 unsigned long addr; 535 unsigned long addr = begin;
536 536
537 if (begin >= end) 537 if (addr >= end)
538 return; 538 return;
539 539
540 /* 540 /*
@@ -549,7 +549,7 @@ void free_init_pages(char *what, unsigned long begin, unsigned long end)
549#else 549#else
550 printk(KERN_INFO "Freeing %s: %luk freed\n", what, (end - begin) >> 10); 550 printk(KERN_INFO "Freeing %s: %luk freed\n", what, (end - begin) >> 10);
551 551
552 for (addr = begin; addr < end; addr += PAGE_SIZE) { 552 for (; addr < end; addr += PAGE_SIZE) {
553 ClearPageReserved(virt_to_page(addr)); 553 ClearPageReserved(virt_to_page(addr));
554 init_page_count(virt_to_page(addr)); 554 init_page_count(virt_to_page(addr));
555 memset((void *)(addr & ~(PAGE_SIZE-1)), 555 memset((void *)(addr & ~(PAGE_SIZE-1)),