X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=arch%2Fmips%2Fmm%2Ffault.c;h=94d3a31ab14494aeae4bfa9849125470ef0d86cd;hb=871341023c771ad233620b7a1fb3d9c7031c4e5c;hp=85df1cd8d446c0b7b1fccbbcb3617175f6314289;hpb=be9c6d9169705504296bdb42ffec8f406691d99f;p=platform%2Fadaptation%2Frenesas_rcar%2Frenesas_kernel.git diff --git a/arch/mips/mm/fault.c b/arch/mips/mm/fault.c index 85df1cd..94d3a31 100644 --- a/arch/mips/mm/fault.c +++ b/arch/mips/mm/fault.c @@ -241,6 +241,8 @@ out_of_memory: * (which will retry the fault, or kill us if we got oom-killed). */ up_read(&mm->mmap_sem); + if (!user_mode(regs)) + goto no_context; pagefault_out_of_memory(); return;