mirror of
https://github.com/adulau/aha.git
synced 2024-12-28 03:36:19 +00:00
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>
This commit is contained in:
parent
7487017282
commit
2633f0e57b
1 changed files with 2 additions and 2 deletions
|
@ -918,8 +918,8 @@ static void exit_notify(struct task_struct *tsk, int group_dead)
|
|||
|
||||
/* mt-exec, de_thread() is waiting for us */
|
||||
if (thread_group_leader(tsk) &&
|
||||
tsk->signal->notify_count < 0 &&
|
||||
tsk->signal->group_exit_task)
|
||||
tsk->signal->group_exit_task &&
|
||||
tsk->signal->notify_count < 0)
|
||||
wake_up_process(tsk->signal->group_exit_task);
|
||||
|
||||
write_unlock_irq(&tasklist_lock);
|
||||
|
|
Loading…
Reference in a new issue