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

Author: Philippe Gerum <r...@xenomai.org>
Date:   Sun May 15 17:25:50 2011 +0200

nucleus/vfiles: fix vlink creation

---

 ksrc/nucleus/vfile.c |    4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)

diff --git a/ksrc/nucleus/vfile.c b/ksrc/nucleus/vfile.c
index d8ac398..6aa42b3 100644
--- a/ksrc/nucleus/vfile.c
+++ b/ksrc/nucleus/vfile.c
@@ -752,8 +752,10 @@ int xnvfile_init_link(const char *from,
 
        ppde = parent->entry.pde;
        pde = proc_symlink(from, ppde, to);
-       if (vlink->entry.pde == NULL)
+       if (pde == NULL) {
+               remove_proc_entry(pde->name, ppde);
                return -ENOMEM;
+       }
 
        vlink->entry.parent = parent;
        vlink->entry.pde = pde;


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

Reply via email to