diff options
author | Suresh Siddha <suresh.b.siddha@intel.com> | 2008-09-29 15:13:26 -0400 |
---|---|---|
committer | Ingo Molnar <mingo@elte.hu> | 2008-10-10 13:29:20 -0400 |
commit | 28dd033f43ca957cd751e02652b36c6fa364ca18 (patch) | |
tree | ad3f0fd3c34e8d3cffe1a349bf12b91687f20127 /arch/x86 | |
parent | 9542ada803198e6eba29d3289abb39ea82047b92 (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.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) | |||
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; |