From: Suresh Siddha Date: Mon, 29 Sep 2008 19:13:26 +0000 (-0700) Subject: x86: fix pagetable init 64-bit breakage X-Git-Tag: v2.6.28-rc1~713^2~3 X-Git-Url: http://pilppa.com/gitweb/?a=commitdiff_plain;h=28dd033f43ca957cd751e02652b36c6fa364ca18;p=linux-2.6-omap-h63xx.git x86: fix pagetable init 64-bit breakage Fix _end alignment check - can trigger a crash if _end happens to be on a page boundary. Signed-off-by: Ingo Molnar --- diff --git a/arch/x86/mm/init_64.c b/arch/x86/mm/init_64.c index f54a4d97530..6116ff0d741 100644 --- a/arch/x86/mm/init_64.c +++ b/arch/x86/mm/init_64.c @@ -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;