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

Author: Philippe Gerum <r...@xenomai.org>
Date:   Sun Dec  4 11:30:37 2011 +0100

nucleus/shadow: fix refcount init of system ppd (regression)

---

 kernel/cobalt/nucleus/shadow.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/kernel/cobalt/nucleus/shadow.c b/kernel/cobalt/nucleus/shadow.c
index 846c74c..15430f1 100644
--- a/kernel/cobalt/nucleus/shadow.c
+++ b/kernel/cobalt/nucleus/shadow.c
@@ -1846,6 +1846,7 @@ static void *xnshadow_sys_event(int event, void *data)
                        exe_path = NULL; /* Not lethal, but weird. */
                }
                p->exe_path = exe_path;
+               xnarch_atomic_set(&p->refcnt, 1);
 
                return &p->ppd;
 


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

Reply via email to