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

Author: Philippe Gerum <r...@xenomai.org>
Date:   Wed Aug  5 16:08:23 2015 +0200

lib/cobalt: fix private event state accessor

---

 lib/cobalt/internal.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lib/cobalt/internal.c b/lib/cobalt/internal.c
index 348ca14..62ecb4a 100644
--- a/lib/cobalt/internal.c
+++ b/lib/cobalt/internal.c
@@ -426,7 +426,7 @@ struct cobalt_event_state *get_event_state(cobalt_event_t 
*event)
 {
        return event->flags & COBALT_EVENT_SHARED ?
                cobalt_umm_shared + event->state_offset :
-               cobalt_umm_shared + event->state_offset;
+               cobalt_umm_private + event->state_offset;
 }
 
 int cobalt_event_init(cobalt_event_t *event, unsigned int value,


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

Reply via email to