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

Author: Jan Kiszka <jan.kis...@siemens.com>
Date:   Thu Oct 31 18:10:40 2013 +0100

cobalt/intr: Fix deadlock of xnintr_attach

Release the intrlock instead of trying to take it twice.

Signed-off-by: Jan Kiszka <jan.kis...@siemens.com>

---

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

diff --git a/kernel/cobalt/intr.c b/kernel/cobalt/intr.c
index f501daf..c07d291 100644
--- a/kernel/cobalt/intr.c
+++ b/kernel/cobalt/intr.c
@@ -752,7 +752,7 @@ int xnintr_attach(xnintr_t *intr, void *cookie)
        intr->flags |= XN_ISR_ATTACHED;
        stat_counter_inc();
 out:
-       mutex_lock(&intrlock);
+       mutex_unlock(&intrlock);
 
        return ret;
 }


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

Reply via email to