aboutsummaryrefslogtreecommitdiffstats
path: root/arch/x86
diff options
context:
space:
mode:
authorSuresh Siddha <suresh.b.siddha@intel.com>2008-09-29 15:13:26 -0400
committerIngo Molnar <mingo@elte.hu>2008-10-10 13:29:20 -0400
commit28dd033f43ca957cd751e02652b36c6fa364ca18 (patch)
treead3f0fd3c34e8d3cffe1a349bf12b91687f20127 /arch/x86
parent9542ada803198e6eba29d3289abb39ea82047b92 (diff)
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 <mingo@elte.hu>
Diffstat (limited to 'arch/x86')
-rw-r--r--arch/x86/mm/init_64.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/x86/mm/init_64.c b/arch/x86/mm/init_64.c
index f54a4d97530f..6116ff0d7416 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)
510 unsigned long pg_addresss = pfn << PAGE_SHIFT; 510 unsigned long pg_addresss = pfn << PAGE_SHIFT;
511 511
512 if (pg_addresss >= (unsigned long) __pa(_text) && 512 if (pg_addresss >= (unsigned long) __pa(_text) &&
513 pg_addresss <= (unsigned long) __pa(_end)) 513 pg_addresss < (unsigned long) __pa(_end))
514 return 1; 514 return 1;
515 515
516 return 0; 516 return 0;