diff --git a/kernel/sched/core.c b/kernel/sched/core.c index 9a4f57d7e93169fc372998617f72372cdbbb8ccd..d7f409866cdf5dde28128b56fccf21f8f2773c77 100644 --- a/kernel/sched/core.c +++ b/kernel/sched/core.c @@ -6930,7 +6930,7 @@ static int __maybe_unused cpu_period_quota_parse(char *buf, { char tok[21]; /* U64_MAX */ - if (!sscanf(buf, "%s %llu", tok, periodp)) + if (sscanf(buf, "%20s %llu", tok, periodp) < 1) return -EINVAL; *periodp *= NSEC_PER_USEC;