aboutsummaryrefslogtreecommitdiffstats
path: root/arch/sh/mm/fault.c
diff options
context:
space:
mode:
Diffstat (limited to 'arch/sh/mm/fault.c')
-rw-r--r--arch/sh/mm/fault.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/sh/mm/fault.c b/arch/sh/mm/fault.c
index 507f28914706..68663b8f99ae 100644
--- a/arch/sh/mm/fault.c
+++ b/arch/sh/mm/fault.c
@@ -149,7 +149,7 @@ no_context:
149 */ 149 */
150out_of_memory: 150out_of_memory:
151 up_read(&mm->mmap_sem); 151 up_read(&mm->mmap_sem);
152 if (current->pid == 1) { 152 if (is_init(current)) {
153 yield(); 153 yield();
154 down_read(&mm->mmap_sem); 154 down_read(&mm->mmap_sem);
155 goto survive; 155 goto survive;