summaryrefslogtreecommitdiffstats
path: root/kernel/exit.c
diff options
context:
space:
mode:
authorOleg Nesterov <oleg@tv-sign.ru>2007-10-17 08:26:57 +0200
committerLinus Torvalds <torvalds@woody.linux-foundation.org>2007-10-17 17:42:51 +0200
commit407af46a967ffd2f208f0a5fb3f1ff954801494a (patch)
treecf9b98874efb3f6a9e244c4f2be6eaf69db3306e /kernel/exit.c
parentpnp: avoid a small unlikely memory leak in proc_read_escd() (diff)
downloadlinux-407af46a967ffd2f208f0a5fb3f1ff954801494a.tar.xz
linux-407af46a967ffd2f208f0a5fb3f1ff954801494a.zip
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 '')
-rw-r--r--kernel/exit.c2
1 files changed, 1 insertions, 1 deletions
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;