x86: fix pagetable init 64-bit breakage
authorSuresh Siddha <suresh.b.siddha@intel.com>
Mon, 29 Sep 2008 19:13:26 +0000 (12:13 -0700)
committerIngo Molnar <mingo@elte.hu>
Fri, 10 Oct 2008 17:29:20 +0000 (19:29 +0200)
Fix _end alignment check - can trigger a crash if _end happens to be
on a page boundary.

Signed-off-by: Ingo Molnar <mingo@elte.hu>
arch/x86/mm/init_64.c

index f54a4d9..6116ff0 100644 (file)
@@ -510,7 +510,7 @@ static int is_kernel(unsigned long pfn)
        unsigned long pg_addresss = pfn << PAGE_SHIFT;
 
        if (pg_addresss >= (unsigned long) __pa(_text) &&
-           pg_addresss <= (unsigned long) __pa(_end))
+           pg_addresss < (unsigned long) __pa(_end))
                return 1;
 
        return 0;