diff options
Diffstat (limited to 'arch/mips/mm')
-rw-r--r-- | arch/mips/mm/fault.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/arch/mips/mm/fault.c b/arch/mips/mm/fault.c index 345a4d6ec20f..0eb43151f10a 100644 --- a/arch/mips/mm/fault.c +++ b/arch/mips/mm/fault.c | |||
@@ -25,6 +25,7 @@ | |||
25 | #include <asm/system.h> | 25 | #include <asm/system.h> |
26 | #include <asm/uaccess.h> | 26 | #include <asm/uaccess.h> |
27 | #include <asm/ptrace.h> | 27 | #include <asm/ptrace.h> |
28 | #include <asm/highmem.h> /* For VMALLOC_END */ | ||
28 | 29 | ||
29 | /* | 30 | /* |
30 | * This routine handles page faults. It determines the address, | 31 | * This routine handles page faults. It determines the address, |
@@ -57,7 +58,7 @@ asmlinkage void do_page_fault(struct pt_regs *regs, unsigned long write, | |||
57 | * only copy the information from the master page table, | 58 | * only copy the information from the master page table, |
58 | * nothing more. | 59 | * nothing more. |
59 | */ | 60 | */ |
60 | if (unlikely(address >= VMALLOC_START)) | 61 | if (unlikely(address >= VMALLOC_START && address <= VMALLOC_END)) |
61 | goto vmalloc_fault; | 62 | goto vmalloc_fault; |
62 | 63 | ||
63 | /* | 64 | /* |