diff options
Diffstat (limited to 'arch/arm/mm/fault.c')
-rw-r--r-- | arch/arm/mm/fault.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/arch/arm/mm/fault.c b/arch/arm/mm/fault.c index c04124a095cf..846cce48e2b7 100644 --- a/arch/arm/mm/fault.c +++ b/arch/arm/mm/fault.c | |||
@@ -145,8 +145,8 @@ void do_bad_area(unsigned long addr, unsigned int fsr, struct pt_regs *regs) | |||
145 | __do_kernel_fault(mm, addr, fsr, regs); | 145 | __do_kernel_fault(mm, addr, fsr, regs); |
146 | } | 146 | } |
147 | 147 | ||
148 | #define VM_FAULT_BADMAP (-20) | 148 | #define VM_FAULT_BADMAP 0x010000 |
149 | #define VM_FAULT_BADACCESS (-21) | 149 | #define VM_FAULT_BADACCESS 0x020000 |
150 | 150 | ||
151 | static int | 151 | static int |
152 | __do_page_fault(struct mm_struct *mm, unsigned long addr, unsigned int fsr, | 152 | __do_page_fault(struct mm_struct *mm, unsigned long addr, unsigned int fsr, |
@@ -249,7 +249,7 @@ do_page_fault(unsigned long addr, unsigned int fsr, struct pt_regs *regs) | |||
249 | /* | 249 | /* |
250 | * Handle the "normal" case first - VM_FAULT_MAJOR / VM_FAULT_MINOR | 250 | * Handle the "normal" case first - VM_FAULT_MAJOR / VM_FAULT_MINOR |
251 | */ | 251 | */ |
252 | if (likely(!(fault & VM_FAULT_ERROR))) | 252 | if (likely(!(fault & (VM_FAULT_ERROR | VM_FAULT_BADMAP | VM_FAULT_BADACCESS)))) |
253 | return 0; | 253 | return 0; |
254 | 254 | ||
255 | /* | 255 | /* |