Module: xenomai-3 Branch: stable-3.0.x Commit: 2937c1cf19d7a649b00e0938c9dded5914f8212c URL: http://git.xenomai.org/?p=xenomai-3.git;a=commit;h=2937c1cf19d7a649b00e0938c9dded5914f8212c
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