Module: xenomai-jki
Branch: for-upstream
Commit: 02fef20f07b86b03ea36713a874dc25d7dadd84b
URL:    
http://git.xenomai.org/?p=xenomai-jki.git;a=commit;h=02fef20f07b86b03ea36713a874dc25d7dadd84b

Author: Jan Kiszka <jan.kis...@siemens.com>
Date:   Tue Aug 24 16:14:04 2010 +0200

nucleus: Fix lock imbalance in registry_proc_callback

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

---

 ksrc/nucleus/registry.c |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/ksrc/nucleus/registry.c b/ksrc/nucleus/registry.c
index 9a6f66e..01d2f6a 100644
--- a/ksrc/nucleus/registry.c
+++ b/ksrc/nucleus/registry.c
@@ -303,7 +303,8 @@ static DECLARE_WORK_FUNC(registry_proc_callback)
                                xnvfile_destroy_dir(rdir);
                        xnlock_get_irqsave(&nklock, s);
                        object->pnode = NULL;
-               }
+               } else
+                       xnlock_get_irqsave(&nklock, s);
 
                continue;
 


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

Reply via email to