|
@@ -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
|
|
* 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).
|
|
* (which will retry the fault, or kill us if we got oom-killed).
|
|
|
*/
|
|
*/
|
|
|
|
|
+ up_read(&mm->mmap_sem);
|
|
|
pagefault_out_of_memory();
|
|
pagefault_out_of_memory();
|
|
|
return;
|
|
return;
|
|
|
|
|
|