summaryrefslogtreecommitdiffstats
path: root/kernel
diff options
context:
space:
mode:
authorOleg Nesterov <oleg@tv-sign.ru>2007-10-16 23:26:57 -0700
committerLinus Torvalds <torvalds@woody.linux-foundation.org>2007-10-17 08:42:51 -0700
commit407af46a967ffd2f208f0a5fb3f1ff954801494a (patch)
treecf9b98874efb3f6a9e244c4f2be6eaf69db3306e /kernel
parenta8b0ac0873cd911b3bf3d6e2db98f80d0b158d56 (diff)
downloadop-kernel-dev-407af46a967ffd2f208f0a5fb3f1ff954801494a.zip
op-kernel-dev-407af46a967ffd2f208f0a5fb3f1ff954801494a.tar.gz
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 <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>
Diffstat (limited to 'kernel')
-rw-r--r--kernel/exit.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/kernel/exit.c b/kernel/exit.c
index 8b64c03..9d6e089 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;
OpenPOWER on IntegriCloud