diff --git a/arch/mips/mm/fault.c b/arch/mips/mm/fault.c index 6751ce9ede9ed6ff6935ec058e86d5f47b992730..f956ecbb81363af8a55b4d0179e7b3b9abc50ca8 100644 --- a/arch/mips/mm/fault.c +++ b/arch/mips/mm/fault.c @@ -171,6 +171,7 @@ asmlinkage void do_page_fault(struct pt_regs *regs, unsigned long write, * We ran out of memory, call the OOM killer, and return the userspace * (which will retry the fault, or kill us if we got oom-killed). */ + up_read(&mm->mmap_sem); pagefault_out_of_memory(); return;