Skip to content

Commit

Permalink
MIPS: Drop mmap_sem in pagefault oom path
Browse files Browse the repository at this point in the history
Fix the pagefault oom path which does not drop mm->mmap_sem.
This was introduced by commit c7c1e38

Signed-off-by: Akinobu Mita <akinobu.mita@gmail.com>
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
  • Loading branch information
Akinobu Mita authored and Ralf Baechle committed Aug 3, 2009
1 parent 49316cb commit a887b4d
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions arch/mips/mm/fault.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down

0 comments on commit a887b4d

Please sign in to comment.