Module: xenomai-rpm
Branch: queue/rtipc
Commit: 19b4295e6f21c6954f1254e49b6bf2de4b77d6a0
URL:    
http://git.xenomai.org/?p=xenomai-rpm.git;a=commit;h=19b4295e6f21c6954f1254e49b6bf2de4b77d6a0

Author: Philippe Gerum <r...@xenomai.org>
Date:   Mon May 31 11:18:27 2010 +0200

rtipc/bufp: return -ENOBUFS when buffer configuration is missing

---

 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 9078539..904d13c 100644
--- a/ksrc/drivers/ipc/bufp.c
+++ b/ksrc/drivers/ipc/bufp.c
@@ -702,7 +702,7 @@ static int __bufp_bind_socket(struct rtipc_private *priv,
         * buffer space via setsockopt(), before we got there.
         */
        if (sk->bufsz == 0)
-               return -EINVAL;
+               return -ENOBUFS;
 
        sk->bufmem = xnarch_alloc_host_mem(sk->bufsz);
        if (sk->bufmem == NULL) {


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

Reply via email to