提交 a887b4da 编写于 作者: A Akinobu Mita 提交者: Ralf Baechle

MIPS: Drop mmap_sem in pagefault oom path

Fix the pagefault oom path which does not drop mm->mmap_sem.
This was introduced by commit c7c1e384Signed-off-by: NAkinobu Mita <akinobu.mita@gmail.com>
Signed-off-by: NRalf Baechle <ralf@linux-mips.org>
上级 49316cbf
......@@ -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;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册