diff options
author | Suresh Siddha <suresh.b.siddha@intel.com> | 2008-09-29 23:13:26 +0400 |
---|---|---|
committer | Ingo Molnar <mingo@elte.hu> | 2008-10-10 21:29:20 +0400 |
commit | 28dd033f43ca957cd751e02652b36c6fa364ca18 (patch) | |
tree | ad3f0fd3c34e8d3cffe1a349bf12b91687f20127 | |
parent | 9542ada803198e6eba29d3289abb39ea82047b92 (diff) | |
download | linux-28dd033f43ca957cd751e02652b36c6fa364ca18.tar.xz |
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>
-rw-r--r-- | arch/x86/mm/init_64.c | 2 |
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) 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; |