diff --git a/kernel/sysctl.c b/kernel/sysctl.c index 21343d1102963485eb9d706012be8d4cc5752edf..4dfba1a76cc360f649cbe6f35b57cf9413f2f5e1 100644 --- a/kernel/sysctl.c +++ b/kernel/sysctl.c @@ -2576,7 +2576,7 @@ static int do_proc_dointvec_jiffies_conv(bool *negp, unsigned long *lvalp, int write, void *data) { if (write) { - if (*lvalp > LONG_MAX / HZ) + if (*lvalp > INT_MAX / HZ) return 1; *valp = *negp ? -(*lvalp*HZ) : (*lvalp*HZ); } else {