projects
/
GitHub
/
LineageOS
/
android_kernel_motorola_exynos9610.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
|
blame
|
history
diff --git
a/arch/x86/mm/init_64.c
b/arch/x86/mm/init_64.c
index f54a4d97530f6c4dfa3e39ad3ebe28a57e13a367..6116ff0d74161cce2a10ddaa0248a57f651b8a53 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;