Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit a887b4da authored by Akinobu Mita's avatar Akinobu Mita Committed by Ralf Baechle
Browse files

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 c7c1e384

Signed-off-by: default avatarAkinobu Mita <akinobu.mita@gmail.com>
Signed-off-by: default avatarRalf Baechle <ralf@linux-mips.org>
parent 49316cbf
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -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;