diff options
Diffstat (limited to 'arch/um')
-rw-r--r-- | arch/um/kernel/trap.c | 2 |
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 | */ |
122 | out_of_memory: | 122 | out_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); |