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

Author: Philippe Gerum <r...@xenomai.org>
Date:   Tue Oct 27 03:10:04 2009 +0100

nucleus: call post-release handlers w/ irqs on

---

 ksrc/nucleus/heap.c |    7 ++-----
 1 files changed, 2 insertions(+), 5 deletions(-)

diff --git a/ksrc/nucleus/heap.c b/ksrc/nucleus/heap.c
index 3b93d8e..4bbc247 100644
--- a/ksrc/nucleus/heap.c
+++ b/ksrc/nucleus/heap.c
@@ -1028,8 +1028,8 @@ static void xnheap_vmclose(struct vm_area_struct *vma)
                        __unreserve_and_free_heap(heap->archdep.heapbase,
                                                  xnheap_extentsize(heap),
                                                  heap->archdep.kmflags);
-                       xnlock_get_irqsave(&nklock, s);
                        heap->archdep.release(heap);
+                       return;
                }
        }
 
@@ -1206,11 +1206,8 @@ int xnheap_destroy_mapped(xnheap_t *heap, void 
(*release)(struct xnheap *heap),
        if (ret == 0) {
                __unreserve_and_free_heap(heap->archdep.heapbase, len,
                                          heap->archdep.kmflags);
-               if (release) {
-                       xnlock_get_irqsave(&nklock, s);
+               if (release)
                        release(heap);
-                       xnlock_put_irqrestore(&nklock, s);
-               }
        }
 
        return ret;


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

Reply via email to