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

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@xenomai.org
http://www.xenomai.org/mailman/listinfo/xenomai-git

Reply via email to