Module: xenomai-3
Branch: next
Commit: efdb4f5c90767a50a7e9ae083d516daace9da11d
URL:    
http://git.xenomai.org/?p=xenomai-3.git;a=commit;h=efdb4f5c90767a50a7e9ae083d516daace9da11d

Author: Philippe Gerum <r...@xenomai.org>
Date:   Mon May 25 10:09:34 2015 +0200

cobalt/synch: fix return value upon release imbalance

---

 kernel/cobalt/synch.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/kernel/cobalt/synch.c b/kernel/cobalt/synch.c
index ce7b206..b948e88 100644
--- a/kernel/cobalt/synch.c
+++ b/kernel/cobalt/synch.c
@@ -669,7 +669,7 @@ struct xnthread *xnsynch_release(struct xnsynch *synch,
        trace_cobalt_synch_release(synch);
 
        if (xnthread_put_resource(thread))
-               return;
+               return NULL;
 
        lockp = xnsynch_fastlock(synch);
        XENO_BUG_ON(COBALT, lockp == NULL);


_______________________________________________
Xenomai-git mailing list
Xenomai-git@xenomai.org
http://xenomai.org/mailman/listinfo/xenomai-git

Reply via email to