Module: xenomai-jki
Branch: for-forge
Commit: 6bc323f2596d72b0a64fdd439bfb57966c519431
URL:    
http://git.xenomai.org/?p=xenomai-jki.git;a=commit;h=6bc323f2596d72b0a64fdd439bfb57966c519431

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

kernel/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