aboutsummaryrefslogtreecommitdiffstats
path: root/arch/xtensa/mm/fault.c
diff options
context:
space:
mode:
Diffstat (limited to 'arch/xtensa/mm/fault.c')
-rw-r--r--arch/xtensa/mm/fault.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/xtensa/mm/fault.c b/arch/xtensa/mm/fault.c
index a945a33e85a1..dd0dbec2e57e 100644
--- a/arch/xtensa/mm/fault.c
+++ b/arch/xtensa/mm/fault.c
@@ -144,7 +144,7 @@ bad_area:
144 */ 144 */
145out_of_memory: 145out_of_memory:
146 up_read(&mm->mmap_sem); 146 up_read(&mm->mmap_sem);
147 if (current->pid == 1) { 147 if (is_init(current)) {
148 yield(); 148 yield();
149 down_read(&mm->mmap_sem); 149 down_read(&mm->mmap_sem);
150 goto survive; 150 goto survive;