All of lore.kernel.org
 help / color / mirror / Atom feed
* [Xenomai-core] [PATCH] bug found in psos queue
@ 2009-11-02  9:43 Alexandre Coffignal
  2009-11-04 10:19 ` Gilles Chanteperdrix
  0 siblings, 1 reply; 3+ messages in thread
From: Alexandre Coffignal @ 2009-11-02  9:43 UTC (permalink / raw)
  To: xenomai

Hello all,

I found a bug in xenomai-2.4/src/skins/psos+/queue.c,
in function q_vreceive, struct modifier is not corectly fill with
argument data.

Here the patch to fix this bug

regards,

Alexandre

diff --git a/CREDITS b/CREDITS
index f2ce6ca..6342a8c 100644
--- a/CREDITS
+++ b/CREDITS
@@ -142,3 +142,7 @@ D: Autoconf-related fixes.
 N: Frederic Villeneuve
 E: frederic.villeneuve@domain.hid
 D: udev support for message pipes.
+
+N: Alexandre Coffignal
+E: alexandre.coffignal@domain.hid
+D: psos skin q_vreceive bug fix
diff --git a/src/skins/psos+/queue.c b/src/skins/psos+/queue.c
index 228f5bd..c54f966 100644
--- a/src/skins/psos+/queue.c
+++ b/src/skins/psos+/queue.c
@@ -82,6 +82,10 @@ u_long q_vreceive(u_long qid, u_long flags, u_long
timeout,
                u_long flags;
                u_long timeout;
        } modifiers;    /* Combine to fit into available arg space (i.e.
5) */
+
+       modifiers.flags=flags;
+       modifiers.timeout=timeout;
+
        return XENOMAI_SKINCALL5(__psos_muxid, __psos_q_vreceive,
                                 qid, &modifiers, msgbuf_r, buflen,
msglen_r);
 }


-- 
Alexandre COFFIGNAL, Chef de Projet
Email: alexandre.coffignal[@]cenosys.com
<mailto:alexandre.coffignal@domain.hid>
------------------------------------

10, Rue Xavier Bichat
F-72000 Le MANS
web : http://www.cenosys.com
------------------------------------



^ permalink raw reply related	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2009-11-04 12:53 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-11-02  9:43 [Xenomai-core] [PATCH] bug found in psos queue Alexandre Coffignal
2009-11-04 10:19 ` Gilles Chanteperdrix
2009-11-04 12:53   ` Alexandre Coffignal

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.