From: Oleg Nesterov Date: Wed, 17 Oct 2007 06:26:57 +0000 (-0700) Subject: wait_task_zombie: remove unneeded child->signal check X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=407af46a967ffd2f208f0a5fb3f1ff954801494a;p=GitHub%2FLineageOS%2FG12%2Fandroid_kernel_amlogic_linux-4.9.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 8b64c0371ae9..9d6e0897a447 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;