mirror of
https://github.com/opnsense/src.git
synced 2026-06-09 08:43:19 -04:00
ksched: correct return code for invalid priority
By convention, EINVAL is returned when validating arguments, not EPERM. This matches the documented behaviour of sched_setscheduler(3), and that of SCHED_OTHER. PR: 227735 MFC after: 1 week Reviewed by: kib, markj Differential Revision: https://reviews.freebsd.org/D37021
This commit is contained in:
parent
04620006b9
commit
ba4782022a
1 changed files with 1 additions and 1 deletions
|
|
@ -186,7 +186,7 @@ ksched_setscheduler(struct ksched *ksched, struct thread *td, int policy,
|
|||
RTP_PRIO_REALTIME;
|
||||
rtp_to_pri(&rtp, td);
|
||||
} else {
|
||||
e = EPERM;
|
||||
e = EINVAL;
|
||||
}
|
||||
break;
|
||||
case SCHED_OTHER:
|
||||
|
|
|
|||
Loading…
Reference in a new issue