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

Author: Philippe Gerum <r...@xenomai.org>
Date:   Thu Feb 20 17:11:51 2014 +0100

cobalt/kernel: fix -ENOSYS usage

---

 kernel/cobalt/shadow.c |    6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/kernel/cobalt/shadow.c b/kernel/cobalt/shadow.c
index edc4a88..0d045dc 100644
--- a/kernel/cobalt/shadow.c
+++ b/kernel/cobalt/shadow.c
@@ -230,7 +230,7 @@ static inline void unlock_timers(void)
 static int enter_personality(struct xnpersonality *personality)
 {
        if (personality->module && !try_module_get(personality->module))
-               return -ENOSYS;
+               return -EAGAIN;
 
        atomic_inc(&personality->refcnt);
 
@@ -1380,7 +1380,7 @@ do_bind:
                return PTR_ERR(process);
 
        if (personality->module && !try_module_get(personality->module)) {
-               ret = -ENOSYS;
+               ret = -EAGAIN;
                goto fail_destroy_process;
        }
 
@@ -1439,7 +1439,7 @@ static int xnshadow_sys_info(int muxid, struct xnsysinfo 
__user *u_info)
 static int xnshadow_sys_trace(int op, unsigned long a1,
                              unsigned long a2, unsigned long a3)
 {
-       int ret = -ENOSYS;
+       int ret = -EINVAL;
 
        switch (op) {
        case __xntrace_op_max_begin:


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

Reply via email to