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

Author: Philippe Gerum <r...@xenomai.org>
Date:   Sat Dec  3 16:46:26 2011 +0100

native/queue: fix rt_queue_flush()

---

 ksrc/skins/native/queue.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/ksrc/skins/native/queue.c b/ksrc/skins/native/queue.c
index ea3d924..6f0fd73 100644
--- a/ksrc/skins/native/queue.c
+++ b/ksrc/skins/native/queue.c
@@ -1218,6 +1218,7 @@ int rt_queue_flush(RT_QUEUE *q)
                 * may run concurrently, we need to revalidate the
                 * queue descriptor for each buffer.
                 */
+               msg->refcount = 1;
                ret = rt_queue_free(q, msg + 1);
                if (ret)
                        break;


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

Reply via email to