On 2023-04-04 at 14:29:15 -0400, chris hyser wrote:
Commit 6419265899d9 ("sched/fair: Fix division by zeroMaybe add a tag
sysctl_numa_balancing_scan_size") prevented a divide by zero by using
sysctl mechanisms to return EINVAL for a sysctl_numa_balancing_scan_size
value of zero. When moved from a sysctl to a debugfs file, this checking
was lost.
This patch puts zero checking back in place.
Fixes: 8a99b6833c88 ("sched: Move SCHED_DEBUG sysctl to debugfs")
Signed-off-by: Chris Hyser <chris.hyser@xxxxxxxxxx>
Other than that,
Tested-by: Chen Yu <yu.c.chen@xxxxxxxxx>
thanks,
Chenyu