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

Author: Philippe Gerum <r...@xenomai.org>
Date:   Wed Jan 19 11:50:11 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 8737ee2..c8387e9 100644
--- a/ksrc/drivers/ipc/bufp.c
+++ b/ksrc/drivers/ipc/bufp.c
@@ -641,7 +641,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