dect
/
linux-2.6
Archived
13
0
Fork 0

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 c7c1e3846b

Signed-off-by: Akinobu Mita <akinobu.mita@gmail.com>
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
This commit is contained in:
Akinobu Mita 2009-07-04 01:33:09 +09:00 committed by Ralf Baechle
parent 49316cbf0a
commit a887b4dada
1 changed files with 1 additions and 0 deletions

View File

@ -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;