Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 18935
b: refs/heads/master
c: c21761f
h: refs/heads/master
i:
  18933: 9dff115
  18931: 73f2b51
  18927: 2419575
v: v3
  • Loading branch information
Jason Baron authored and Linus Torvalds committed Jan 19, 2006
1 parent 0ff3c28 commit 02a3112
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 147b31cf09ee493aa71c87c0dd2eef74b6b2aeba
refs/heads/master: c21761f168894b356626c847fe13be39605d76b4
4 changes: 4 additions & 0 deletions trunk/kernel/sched.c
Original file line number Diff line number Diff line change
Expand Up @@ -3850,6 +3850,10 @@ do_sched_setscheduler(pid_t pid, int policy, struct sched_param __user *param)
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);
}

Expand Down

0 comments on commit 02a3112

Please sign in to comment.