From: Alexandre Coffignal <alexandre.coffignal@domain.hid>
To: xenomai@xenomai.org
Subject: [Xenomai-core] [PATCH] bug found in psos queue
Date: Mon, 02 Nov 2009 10:43:11 +0100 [thread overview]
Message-ID: <4AEEA9AF.5030302@domain.hid> (raw)
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
------------------------------------
next reply other threads:[~2009-11-02 9:43 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-11-02 9:43 Alexandre Coffignal [this message]
2009-11-04 10:19 ` [Xenomai-core] [PATCH] bug found in psos queue Gilles Chanteperdrix
2009-11-04 12:53 ` Alexandre Coffignal
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=4AEEA9AF.5030302@domain.hid \
--to=alexandre.coffignal@domain.hid \
--cc=xenomai@xenomai.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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.