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

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 a6a8e82..d434482 100644
--- a/ksrc/drivers/ipc/bufp.c
+++ b/ksrc/drivers/ipc/bufp.c
@@ -714,7 +714,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