Files
erofs-linux/tools/sched_ext/include
David Carlier 032e084f0d tools/sched_ext: fix strtoul() misuse in scx_hotplug_seq()
scx_hotplug_seq() uses strtoul() but validates the result with a
negative check (val < 0), which can never be true for an unsigned
return value.

Use the endptr mechanism to verify the entire string was consumed,
and check errno == ERANGE for overflow detection.

Signed-off-by: David Carlier <[email protected]>
Signed-off-by: Tejun Heo <[email protected]>
2026-02-27 09:17:44 -10:00
..