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

Author: Gilles Chanteperdrix <gilles.chanteperd...@xenomai.org>
Date:   Fri May 10 15:27:05 2013 +0200

native: do not defer removing rt_heaps from list

---

 ksrc/skins/native/heap.c |    3 +--
 1 files changed, 1 insertions(+), 2 deletions(-)

diff --git a/ksrc/skins/native/heap.c b/ksrc/skins/native/heap.c
index 4a39d07..61f6676 100644
--- a/ksrc/skins/native/heap.c
+++ b/ksrc/skins/native/heap.c
@@ -371,8 +371,6 @@ static void __heap_post_release(struct xnheap *h)
 
        xnlock_get_irqsave(&nklock, s);
 
-       removeq(heap->rqueue, &heap->rlink);
-
        if (heap->handle)
                xnregistry_remove(heap->handle);
 
@@ -441,6 +439,7 @@ int rt_heap_delete_inner(RT_HEAP *heap, void __user 
*mapaddr)
        }
 
        xeno_mark_deleted(heap);
+       removeq(heap->rqueue, &heap->rlink);
 
        /* Get out of the nklocked section before releasing the heap
           memory, since we are about to invoke Linux kernel


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

Reply via email to