aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--kernel/exit.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/kernel/exit.c b/kernel/exit.c
index 98eec590ecbd..77c35efad88c 100644
--- a/kernel/exit.c
+++ b/kernel/exit.c
@@ -68,13 +68,12 @@ void release_task(struct task_struct * p)
68 task_t *leader; 68 task_t *leader;
69 struct dentry *proc_dentry; 69 struct dentry *proc_dentry;
70 70
71repeat: 71repeat:
72 atomic_dec(&p->user->processes); 72 atomic_dec(&p->user->processes);
73 spin_lock(&p->proc_lock); 73 spin_lock(&p->proc_lock);
74 proc_dentry = proc_pid_unhash(p); 74 proc_dentry = proc_pid_unhash(p);
75 write_lock_irq(&tasklist_lock); 75 write_lock_irq(&tasklist_lock);
76 if (unlikely(p->ptrace)) 76 ptrace_unlink(p);
77 __ptrace_unlink(p);
78 BUG_ON(!list_empty(&p->ptrace_list) || !list_empty(&p->ptrace_children)); 77 BUG_ON(!list_empty(&p->ptrace_list) || !list_empty(&p->ptrace_children));
79 __exit_signal(p); 78 __exit_signal(p);
80 /* 79 /*