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

Author: Philippe Gerum <r...@xenomai.org>
Date:   Mon Nov  9 15:47:06 2015 +0100

cobalt/posix/thread: fix failure code upon missing u_window

---

 kernel/cobalt/posix/thread.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/kernel/cobalt/posix/thread.c b/kernel/cobalt/posix/thread.c
index 5886ceb..70e4c70 100644
--- a/kernel/cobalt/posix/thread.c
+++ b/kernel/cobalt/posix/thread.c
@@ -468,7 +468,7 @@ int cobalt_thread_setschedparam_ex(unsigned long pth,
        thread = thread_lookup(&hkey);
        if (thread == NULL) {
                if (u_winoff == NULL)
-                       return -ESRCH;
+                       return -EINVAL;
                        
                thread = cobalt_thread_shadow(current, &hkey, u_winoff);
                if (IS_ERR(thread))


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

Reply via email to