aboutsummaryrefslogtreecommitdiffstats
path: root/arch/x86_64/mm/fault.c
diff options
context:
space:
mode:
Diffstat (limited to 'arch/x86_64/mm/fault.c')
-rw-r--r--arch/x86_64/mm/fault.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/arch/x86_64/mm/fault.c b/arch/x86_64/mm/fault.c
index 9ba54cc2b5f6..3751b4788e28 100644
--- a/arch/x86_64/mm/fault.c
+++ b/arch/x86_64/mm/fault.c
@@ -244,7 +244,7 @@ static int is_errata93(struct pt_regs *regs, unsigned long address)
244 244
245int unhandled_signal(struct task_struct *tsk, int sig) 245int unhandled_signal(struct task_struct *tsk, int sig)
246{ 246{
247 if (tsk->pid == 1) 247 if (is_init(tsk))
248 return 1; 248 return 1;
249 if (tsk->ptrace & PT_PTRACED) 249 if (tsk->ptrace & PT_PTRACED)
250 return 0; 250 return 0;
@@ -580,7 +580,7 @@ no_context:
580 */ 580 */
581out_of_memory: 581out_of_memory:
582 up_read(&mm->mmap_sem); 582 up_read(&mm->mmap_sem);
583 if (current->pid == 1) { 583 if (is_init(current)) {
584 yield(); 584 yield();
585 goto again; 585 goto again;
586 } 586 }