diff options
Diffstat (limited to 'kernel/sched.c')
-rw-r--r-- | kernel/sched.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/kernel/sched.c b/kernel/sched.c index dc85ceb90832..df6579d9b4df 100644 --- a/kernel/sched.c +++ b/kernel/sched.c | |||
@@ -4645,7 +4645,7 @@ recheck: | |||
4645 | } | 4645 | } |
4646 | 4646 | ||
4647 | if (user) { | 4647 | if (user) { |
4648 | retval = security_task_setscheduler(p, policy, param); | 4648 | retval = security_task_setscheduler(p); |
4649 | if (retval) | 4649 | if (retval) |
4650 | return retval; | 4650 | return retval; |
4651 | } | 4651 | } |
@@ -4887,7 +4887,7 @@ long sched_setaffinity(pid_t pid, const struct cpumask *in_mask) | |||
4887 | if (!check_same_owner(p) && !capable(CAP_SYS_NICE)) | 4887 | if (!check_same_owner(p) && !capable(CAP_SYS_NICE)) |
4888 | goto out_unlock; | 4888 | goto out_unlock; |
4889 | 4889 | ||
4890 | retval = security_task_setscheduler(p, 0, NULL); | 4890 | retval = security_task_setscheduler(p); |
4891 | if (retval) | 4891 | if (retval) |
4892 | goto out_unlock; | 4892 | goto out_unlock; |
4893 | 4893 | ||