Module: xenomai-3
Branch: next
Commit: b64da72bbdcc1494afae54f00bbe83ef4ce4d021
URL:    
http://git.xenomai.org/?p=xenomai-3.git;a=commit;h=b64da72bbdcc1494afae54f00bbe83ef4ce4d021

Author: Philippe Gerum <r...@xenomai.org>
Date:   Mon Jan 18 11:24:13 2016 +0100

alchemy/heap: handle nullable references properly

---

 lib/alchemy/heap.c |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/lib/alchemy/heap.c b/lib/alchemy/heap.c
index 146bfa1..927994b 100644
--- a/lib/alchemy/heap.c
+++ b/lib/alchemy/heap.c
@@ -245,7 +245,7 @@ int rt_heap_create(RT_HEAP *heap,
        generate_name(hcb->name, name, &heap_namegen);
        hcb->mode = mode;
        hcb->size = heapsz;
-       hcb->sba = __moff(NULL);
+       hcb->sba = __moff_nullable(NULL);
 
        if (mode & H_PRIO)
                sobj_flags = SYNCOBJ_PRIO;
@@ -439,7 +439,7 @@ int rt_heap_alloc_timed(RT_HEAP *heap,
                goto out;
 
        if (hcb->mode & H_SINGLE) {
-               p = __mptr(hcb->sba);
+               p = __mptr_nullable(hcb->sba);
                if (p)
                        goto done;
                if (size == 0)


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

Reply via email to