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

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 61777a1..6b8264a 100644
--- a/ksrc/skins/native/queue.c
+++ b/ksrc/skins/native/queue.c
@@ -1175,6 +1175,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