exit signals: use of uninitialized field notify_count
authorSteve VanDeBogart <vandebo-lkml@NerdBox.Net>
Tue, 26 Aug 2008 22:14:36 +0000 (15:14 -0700)
committerIngo Molnar <mingo@elte.hu>
Wed, 27 Aug 2008 07:10:09 +0000 (09:10 +0200)
commit2633f0e57b1127f4060d70bf460140dc9bb19386
treedb67beb9715fee165f8c8baaee47fc023b26dceb
parent74870172824a78640ec4f03058d9bd35dfa08618
exit signals: use of uninitialized field notify_count

task->signal->notify_count is only initialized if
task->signal->group_exit_task is not NULL.  Reorder a conditional so
that uninitialised memory is not used.  Found by Valgrind.

Signed-off-by: Steve VanDeBogart <vandebo-lkml@nerdbox.net>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
kernel/exit.c