aboutsummaryrefslogtreecommitdiffstats
path: root/arch/mips/mm/fault.c
diff options
context:
space:
mode:
Diffstat (limited to 'arch/mips/mm/fault.c')
-rw-r--r--arch/mips/mm/fault.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/mips/mm/fault.c b/arch/mips/mm/fault.c
index a4f8c45c4e8e..8423d8590779 100644
--- a/arch/mips/mm/fault.c
+++ b/arch/mips/mm/fault.c
@@ -171,7 +171,7 @@ no_context:
171 */ 171 */
172out_of_memory: 172out_of_memory:
173 up_read(&mm->mmap_sem); 173 up_read(&mm->mmap_sem);
174 if (tsk->pid == 1) { 174 if (is_init(tsk)) {
175 yield(); 175 yield();
176 down_read(&mm->mmap_sem); 176 down_read(&mm->mmap_sem);
177 goto survive; 177 goto survive;