* Jason Baron <[email protected]> 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 <[email protected]>
Ingo
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
[Index of Archives]
[Kernel Newbies]
[Netfilter]
[Bugtraq]
[Photo]
[Stuff]
[Gimp]
[Yosemite News]
[MIPS Linux]
[ARM Linux]
[Linux Security]
[Linux RAID]
[Video 4 Linux]
[Linux for the blind]
[Linux Resources]