mirror of
https://github.com/Fishwaldo/linux-bl808.git
synced 2025-03-25 08:25:28 +00:00
[PATCH] release_task: replace open-coded ptrace_unlink()
Use ptrace_unlink() instead of open-coding. No changes in kernel/exit.o Signed-off-by: Oleg Nesterov <oleg@tv-sign.ru> Cc: "Eric W. Biederman" <ebiederm@xmission.com> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
This commit is contained in:
parent
8292d633ad
commit
1f09f9749c
1 changed files with 2 additions and 3 deletions
|
@ -73,8 +73,7 @@ repeat:
|
|||
spin_lock(&p->proc_lock);
|
||||
proc_dentry = proc_pid_unhash(p);
|
||||
write_lock_irq(&tasklist_lock);
|
||||
if (unlikely(p->ptrace))
|
||||
__ptrace_unlink(p);
|
||||
ptrace_unlink(p);
|
||||
BUG_ON(!list_empty(&p->ptrace_list) || !list_empty(&p->ptrace_children));
|
||||
__exit_signal(p);
|
||||
/*
|
||||
|
|
Loading…
Add table
Reference in a new issue