From: Thiemo Seufer Date: Sat, 19 Feb 2005 13:56:04 +0000 (+0000) Subject: Handle addresses beyond VMALLOC_END correctly. X-Git-Tag: v2.6.15-rc1~731^2~1^2~287 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=16033d6104f1704bea19ca2684b1c97731479048;p=platform%2Fkernel%2Flinux-3.10.git Handle addresses beyond VMALLOC_END correctly. Signed-off-by: Thiemo Seufer Signed-off-by: Ralf Baechle --- diff --git a/arch/mips/mm/fault.c b/arch/mips/mm/fault.c index 345a4d6..0eb4315 100644 --- a/arch/mips/mm/fault.c +++ b/arch/mips/mm/fault.c @@ -25,6 +25,7 @@ #include #include #include +#include /* For VMALLOC_END */ /* * 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, * 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; /*