Skip to content

Commit

Permalink
wait_task_zombie: remove unneeded child->signal check
Browse files Browse the repository at this point in the history
A zombie must have a valid ->signal, we are going to release it and
__exit_signal() starts with BUG_ON(!sig).

Signed-off-by: Oleg Nesterov <oleg@tv-sign.ru>
Cc: Roland McGrath <roland@redhat.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
  • Loading branch information
Oleg Nesterov authored and Linus Torvalds committed Oct 17, 2007
1 parent a8b0ac0 commit 407af46
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion kernel/exit.c
Original file line number Diff line number Diff line change
Expand Up @@ -1201,7 +1201,7 @@ static int wait_task_zombie(struct task_struct *p, int noreap,
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 *sig;

Expand Down

0 comments on commit 407af46

Please sign in to comment.