From: Akinobu Mita Date: Fri, 3 Jul 2009 16:33:09 +0000 (+0900) Subject: MIPS: Drop mmap_sem in pagefault oom path X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=a887b4dada2f23b2ff2aa725e0509c92dc652597;p=GitHub%2Fexynos8895%2Fandroid_kernel_samsung_universal8895.git 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 c7c1e3846bac1e4b8a8941f6a194812e28b0a519 Signed-off-by: Akinobu Mita Signed-off-by: Ralf Baechle --- diff --git a/arch/mips/mm/fault.c b/arch/mips/mm/fault.c index 6751ce9ede9e..f956ecbb8136 100644 --- a/arch/mips/mm/fault.c +++ b/arch/mips/mm/fault.c @@ -171,6 +171,7 @@ out_of_memory: * 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;