projects
/
GitHub
/
MotorolaMobilityLLC
/
kernel-slsi.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d951734
)
x86, mm: fault.c, remove #ifdef from fault_in_kernel_space()
author
Ingo Molnar
<mingo@elte.hu>
Fri, 20 Feb 2009 22:27:29 +0000
(23:27 +0100)
committer
Ingo Molnar
<mingo@elte.hu>
Fri, 20 Feb 2009 23:09:45 +0000
(
00:09
+0100)
Impact: cleanup
Removal of an #ifdef in fault_in_kernel_space(), by making
use of the new TASK_SIZE_MAX symbol which is now available
on 32-bit too.
Cc: Linus Torvalds <torvalds@linux-foundation.org>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
arch/x86/mm/fault.c
patch
|
blob
|
blame
|
history
diff --git
a/arch/x86/mm/fault.c
b/arch/x86/mm/fault.c
index 6fa9f175cba38e276d3ab76d42aa0bcdfde6387c..f195691ec26ea965fae2ebaa13de89185ca85ede 100644
(file)
--- a/
arch/x86/mm/fault.c
+++ b/
arch/x86/mm/fault.c
@@
-960,11
+960,7
@@
access_error(unsigned long error_code, int write, struct vm_area_struct *vma)
static int fault_in_kernel_space(unsigned long address)
{
-#ifdef CONFIG_X86_32
- return address >= TASK_SIZE;
-#else
return address >= TASK_SIZE_MAX;
-#endif
}
/*