Commit 407af46a authored by Oleg Nesterov's avatar Oleg Nesterov Committed by Linus Torvalds

wait_task_zombie: remove unneeded child->signal check

A zombie must have a valid ->signal, we are going to release it and
__exit_signal() starts with BUG_ON(!sig).
Signed-off-by: default avatarOleg Nesterov <oleg@tv-sign.ru>
Cc: Roland McGrath <roland@redhat.com>
Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
parent a8b0ac08
...@@ -1201,7 +1201,7 @@ static int wait_task_zombie(struct task_struct *p, int noreap, ...@@ -1201,7 +1201,7 @@ static int wait_task_zombie(struct task_struct *p, int noreap,
return 0; return 0;
} }
if (likely(p->real_parent == p->parent) && likely(p->signal)) { if (likely(p->real_parent == p->parent)) {
struct signal_struct *psig; struct signal_struct *psig;
struct signal_struct *sig; struct signal_struct *sig;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment