lkml.org 
[lkml]   [2006]   [Jan]   [17]   [last100]   RSS Feed
Views: [more markup]  [less markup]  [headers]  [forward] 
 
Messages in this thread
/
DateTue, 17 Jan 2006 08:59:24 +0100
FromIngo Molnar <>
SubjectRe: [2.6 patch] fix sched_setscheduler semantics
* Jason Baron <jbaron@redhat.com> wrote:

> Therefore, i'd suggest the following patch. Verified to fix the 
> attached test case. Thanks to Tony Reix for pointing this out.

indeed - good catch.

>  asmlinkage long sys_sched_setscheduler(pid_t pid, int policy,
>  				       struct sched_param __user *param)
>  {
> +	/* negative values for policy are not valid */
> +	if (policy < 0)
> +		return -EINVAL;
> +
>  	return do_sched_setscheduler(pid, policy, param);

Acked-by: Ingo Molnar <mingo@elte.hu>

	Ingo
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2006-01-17 09:02    [from the cache]
©2003-2008