Skip to content

Commit

Permalink
Handle addresses beyond VMALLOC_END correctly.
Browse files Browse the repository at this point in the history
Signed-off-by: Thiemo Seufer <ths@networkno.de>
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
  • Loading branch information
Thiemo Seufer authored and Ralf Baechle committed Oct 29, 2005
1 parent 26a51b2 commit 16033d6
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion arch/mips/mm/fault.c
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@
#include <asm/system.h>
#include <asm/uaccess.h>
#include <asm/ptrace.h>
#include <asm/highmem.h> /* For VMALLOC_END */

/*
* This routine handles page faults. It determines the address,
Expand Down Expand Up @@ -57,7 +58,7 @@ asmlinkage void do_page_fault(struct pt_regs *regs, unsigned long write,
* only copy the information from the master page table,
* nothing more.
*/
if (unlikely(address >= VMALLOC_START))
if (unlikely(address >= VMALLOC_START && address <= VMALLOC_END))
goto vmalloc_fault;

/*
Expand Down

0 comments on commit 16033d6

Please sign in to comment.