diff --git a/kernel/sched/core.c b/kernel/sched/core.c index 6b2c055564b5795cec7ae7f329b2247375b9bd29..b7a4afdc33cba680fe5b1b869be6e5e1389cd64d 100644 --- a/kernel/sched/core.c +++ b/kernel/sched/core.c @@ -6943,7 +6943,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;