Module: xenomai-3
Branch: stable-3.0.x
Commit: 63621418456fa55a7ce1825bbcc8550bc5c275a6
URL:    
http://git.xenomai.org/?p=xenomai-3.git;a=commit;h=63621418456fa55a7ce1825bbcc8550bc5c275a6

Author: Philippe Gerum <r...@xenomai.org>
Date:   Thu Apr 19 19:18:28 2018 +0200

Revert "copperplate/heapobj-pshared: fix memory limit"

This reverts commit 5b0c3677fa15397ab7d8e609685f8b4259d62fde which was
wrong and fortunately did not survive the upcoming memcheck tests.

---

 lib/copperplate/heapobj-pshared.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lib/copperplate/heapobj-pshared.c 
b/lib/copperplate/heapobj-pshared.c
index 0a3c24e..a3c5484 100644
--- a/lib/copperplate/heapobj-pshared.c
+++ b/lib/copperplate/heapobj-pshared.c
@@ -226,7 +226,7 @@ static int init_heap(struct shared_heap *heap, void *base,
        extent->bitmap = __shoff(base, mem) + bmapoff;
        extent->bitwords = bmapwords;
        extent->membase = __shoff(base, mem) + metasz;
-       extent->memlim = __shoff(base, mem) + size;
+       extent->memlim = extent->membase + size;
        init_extent(base, extent);
        __list_append(base, &extent->link, &heap->extents);
 


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

Reply via email to