diff options
author | Oleg Nesterov <oleg@tv-sign.ru> | 2007-10-17 08:26:57 +0200 |
---|---|---|
committer | Linus Torvalds <torvalds@woody.linux-foundation.org> | 2007-10-17 17:42:51 +0200 |
commit | 407af46a967ffd2f208f0a5fb3f1ff954801494a (patch) | |
tree | cf9b98874efb3f6a9e244c4f2be6eaf69db3306e /kernel/exit.c | |
parent | pnp: avoid a small unlikely memory leak in proc_read_escd() (diff) | |
download | linux-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.c | 2 |
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; |