Module: xenomai-head
Branch: master
Commit: 74cd0be4a8a540df67bafc8de0a773f82361726f
URL:    
http://git.xenomai.org/?p=xenomai-head.git;a=commit;h=74cd0be4a8a540df67bafc8de0a773f82361726f

Author: Philippe Gerum <r...@xenomai.org>
Date:   Wed Jan 19 11:49:45 2011 +0100

rtipc/bufp: fix port number check

---

 ksrc/drivers/ipc/bufp.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/ksrc/drivers/ipc/bufp.c b/ksrc/drivers/ipc/bufp.c
index 10b12f7..49ecb75 100644
--- a/ksrc/drivers/ipc/bufp.c
+++ b/ksrc/drivers/ipc/bufp.c
@@ -629,7 +629,7 @@ static ssize_t bufp_sendmsg(struct rtipc_private *priv,
                        return -EFAULT;
 
                if (daddr.sipc_port < 0 ||
-                   daddr.sipc_port >= CONFIG_XENO_OPT_IDDP_NRPORT)
+                   daddr.sipc_port >= CONFIG_XENO_OPT_BUFP_NRPORT)
                        return -EINVAL;
        } else {
                if (msg->msg_namelen != 0)


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

Reply via email to