From 407af46a967ffd2f208f0a5fb3f1ff954801494a Mon Sep 17 00:00:00 2001 From: Oleg Nesterov Date: Tue, 16 Oct 2007 23:26:57 -0700 Subject: [PATCH] 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 --- kernel/exit.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kernel/exit.c b/kernel/exit.c index 8b64c0371a..9d6e0897a4 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; -- 2.39.5