aboutsummaryrefslogtreecommitdiff
path: root/arch/x86/mm
diff options
context:
space:
mode:
authorSuresh Siddha <suresh.b.siddha@intel.com>2008-09-29 12:13:26 -0700
committerIngo Molnar <mingo@elte.hu>2008-10-10 19:29:20 +0200
commit28dd033f43ca957cd751e02652b36c6fa364ca18 (patch)
treead3f0fd3c34e8d3cffe1a349bf12b91687f20127 /arch/x86/mm
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/mm')
-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 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;