From: Oleg Nesterov Date: Wed, 17 Oct 2007 06:26:57 +0000 (-0700) Subject: wait_task_zombie: remove unneeded child->signal check X-Git-Tag: v2.6.24-rc1~709 X-Git-Url: http://pilppa.com/gitweb/?a=commitdiff_plain;h=407af46a967ffd2f208f0a5fb3f1ff954801494a;p=linux-2.6-omap-h63xx.git 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: Oleg Nesterov Cc: Roland McGrath Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- diff --git a/kernel/exit.c b/kernel/exit.c index 8b64c0371ae..9d6e0897a44 100644 --- a/kernel/exit.c +++ b/kernel/exit.c @@ -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;