projects
/
GitHub
/
moto-9609
/
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:
1260f80
)
[PATCH] x86-64: use proper VM_FAULT_xxx macros
author
Alexander Nyberg
<alexn@telia.com>
Thu, 4 Aug 2005 14:14:57 +0000
(16:14 +0200)
committer
Linus Torvalds
<torvalds@g5.osdl.org>
Thu, 4 Aug 2005 15:20:48 +0000
(08:20 -0700)
x86_64 had hardcoded the VM_ numbers so it broke down when the numbers
were changed.
Signed-off-by: Alexander Nyberg <alexn@telia.com>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
arch/x86_64/mm/fault.c
patch
|
blob
|
blame
|
history
diff --git
a/arch/x86_64/mm/fault.c
b/arch/x86_64/mm/fault.c
index 13792721037e1692670732b49d7c92b6d39b68fa..493819e543a5e9b876617855ee07b71e1e1234ad 100644
(file)
--- a/
arch/x86_64/mm/fault.c
+++ b/
arch/x86_64/mm/fault.c
@@
-439,13
+439,13
@@
good_area:
* the fault.
*/
switch (handle_mm_fault(mm, vma, address, write)) {
- case
1
:
+ case
VM_FAULT_MINOR
:
tsk->min_flt++;
break;
- case
2
:
+ case
VM_FAULT_MAJOR
:
tsk->maj_flt++;
break;
- case
0
:
+ case
VM_FAULT_SIGBUS
:
goto do_sigbus;
default:
goto out_of_memory;