]> git.karo-electronics.de Git - mv-sheeva.git/blobdiff - kernel/exit.c
exit: avoid sig->count in de_thread/__exit_signal synchronization
[mv-sheeva.git] / kernel / exit.c
index 59a104c673f77908e0b1cd016b3a409f94dc0468..9220967f42567be74c90c29081559facb97981e6 100644 (file)
@@ -97,7 +97,7 @@ static void __exit_signal(struct task_struct *tsk)
                 * If there is any task waiting for the group exit
                 * then notify it:
                 */
-               if (sig->group_exit_task && atomic_read(&sig->count) == sig->notify_count)
+               if (sig->notify_count > 0 && !--sig->notify_count)
                        wake_up_process(sig->group_exit_task);
 
                if (tsk == sig->curr_target)