Signed-off-by: Dongsheng Yang <yangds.f...@cn.fujitsu.com> cc: Andrew Morton <a...@linux-foundation.org> cc: Oleg Nesterov <o...@redhat.com> cc: Robin Holt <h...@sgi.com> cc: Al Viro <v...@zeniv.linux.org.uk> cc: Kees Cook <keesc...@chromium.org> cc: "Eric W. Biederman" <ebied...@xmission.com> cc: Stephen Rothwell <s...@canb.auug.org.au> cc: Peter Zijlstra <pet...@infradead.org> cc: Ingo Molnar <mi...@kernel.org> --- kernel/sys.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/kernel/sys.c b/kernel/sys.c index c0a58be..adaeab6 100644 --- a/kernel/sys.c +++ b/kernel/sys.c @@ -174,10 +174,10 @@ SYSCALL_DEFINE3(setpriority, int, which, int, who, int, niceval) /* normalize: avoid signed division (rounding problems) */ error = -ESRCH; - if (niceval < -20) - niceval = -20; - if (niceval > 19) - niceval = 19; + if (niceval < MIN_NICE) + niceval = MIN_NICE; + if (niceval > MAX_NICE) + niceval = MAX_NICE; rcu_read_lock(); read_lock(&tasklist_lock); -- 1.8.2.1 -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/