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

Author: Philippe Gerum <r...@xenomai.org>
Date:   Wed Sep  9 19:27:12 2009 +0200

rtipc/iddp: fix double-free introduced by recent bufd usage

---

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

diff --git a/ksrc/drivers/ipc/iddp.c b/ksrc/drivers/ipc/iddp.c
index 78b3e23..4cad5d5 100644
--- a/ksrc/drivers/ipc/iddp.c
+++ b/ksrc/drivers/ipc/iddp.c
@@ -445,6 +445,7 @@ static ssize_t __iddp_sendmsg(struct rtipc_private *priv,
                        else
                                list_add_tail(&mbuf->next, &rsk->inq);
                        rtdm_sem_up(&rsk->insem);
+                       ret = 0;
                }
        );
        if (unlikely(ret)) {


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

Reply via email to