mirror of
https://github.com/torvalds/linux.git
synced 2026-11-29 01:43:18 +00:00
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]>