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 <devnexen@gmail.com> Signed-off-by: Tejun Heo <tj@kernel.org> |
||
|---|---|---|
| .. | ||
| bpf_arena_common.bpf.h | ||
| bpf_arena_common.h | ||
| common.bpf.h | ||
| common.h | ||
| compat.bpf.h | ||
| compat.h | ||
| enum_defs.autogen.h | ||
| enums.autogen.bpf.h | ||
| enums.autogen.h | ||
| enums.bpf.h | ||
| enums.h | ||
| user_exit_info.bpf.h | ||
| user_exit_info.h | ||
| user_exit_info_common.h | ||