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

Author: Tom Philips <tom.philips1...@gmail.com>
Date:   Thu Jun 13 16:27:18 2013 +0200

copperplate: fix locking imbalance in threadobj_set_priority() (mercury core)

---

 lib/copperplate/threadobj.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/lib/copperplate/threadobj.c b/lib/copperplate/threadobj.c
index 0ec95d7..cb001d1 100644
--- a/lib/copperplate/threadobj.c
+++ b/lib/copperplate/threadobj.c
@@ -547,6 +547,7 @@ int threadobj_set_priority(struct threadobj *thobj, int 
prio) /* thobj->lock hel
        if (thobj->status & __THREAD_S_NOPREEMPT) {
                thobj->core.prio_unlocked = prio;
                thobj->core.policy_unlocked = prio ? SCHED_RT : SCHED_OTHER;
+               threadobj_unlock(thobj);
                return 0;
        }
 


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

Reply via email to