aboutsummaryrefslogtreecommitdiffstats
path: root/arch/um/kernel/trap.c
diff options
context:
space:
mode:
Diffstat (limited to 'arch/um/kernel/trap.c')
-rw-r--r--arch/um/kernel/trap.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/um/kernel/trap.c b/arch/um/kernel/trap.c
index 61a23fff439..c7b195c7e51 100644
--- a/arch/um/kernel/trap.c
+++ b/arch/um/kernel/trap.c
@@ -120,7 +120,7 @@ out_nosemaphore:
120 * us unable to handle the page fault gracefully. 120 * us unable to handle the page fault gracefully.
121 */ 121 */
122out_of_memory: 122out_of_memory:
123 if (current->pid == 1) { 123 if (is_init(current)) {
124 up_read(&mm->mmap_sem); 124 up_read(&mm->mmap_sem);
125 yield(); 125 yield();
126 down_read(&mm->mmap_sem); 126 down_read(&mm->mmap_sem);