projects
/
platform
/
kernel
/
linux-exynos.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9542ada
)
x86: fix pagetable init 64-bit breakage
author
Suresh Siddha
<suresh.b.siddha@intel.com>
Mon, 29 Sep 2008 19:13:26 +0000
(12:13 -0700)
committer
Ingo Molnar
<mingo@elte.hu>
Fri, 10 Oct 2008 17:29:20 +0000
(19:29 +0200)
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>
arch/x86/mm/init_64.c
patch
|
blob
|
history
diff --git
a/arch/x86/mm/init_64.c
b/arch/x86/mm/init_64.c
index
f54a4d9
..
6116ff0
100644
(file)
--- 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;