Module: xenomai-jki
Branch: for-forge
Commit: 828c3955719ad5a08bbe4f369b1afa8225ffad8e
URL:    
http://git.xenomai.org/?p=xenomai-jki.git;a=commit;h=828c3955719ad5a08bbe4f369b1afa8225ffad8e

Author: Jan Kiszka <jan.kis...@siemens.com>
Date:   Sat May 21 00:03:24 2016 +0200

cobalt/kernel: Fix infinite loops on thread cleanup

Due to flipped parameters of list_for_each_entry_safe,
cobalt_signal_flush caused eventual infinite loops.

Signed-off-by: Jan Kiszka <jan.kis...@siemens.com>

---

 kernel/cobalt/posix/signal.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/kernel/cobalt/posix/signal.c b/kernel/cobalt/posix/signal.c
index a3ec756..4822fda 100644
--- a/kernel/cobalt/posix/signal.c
+++ b/kernel/cobalt/posix/signal.c
@@ -194,7 +194,7 @@ void cobalt_signal_flush(struct cobalt_thread *thread)
                 * detect this fact when deleting their respective
                 * owners.
                 */
-               list_for_each_entry_safe(tmp, sigp, sigq, next)
+               list_for_each_entry_safe(sigp, tmp, sigq, next)
                        list_del_init(&sigp->next);
        }
 


_______________________________________________
Xenomai-git mailing list
Xenomai-git@xenomai.org
https://xenomai.org/mailman/listinfo/xenomai-git

Reply via email to