On Mon, Oct 15, 2018 at 9:27 PM Alexey Dobriyan <adobri...@gmail.com> wrote:
>
> > int kstrtoul_bounded(const char *s, unsigned int base,
> > char **trailing, unsigned long long *res)
>
> NO! The whole point is not have million variants of slightly different
> integer parsing functions.
> Cap it in the sysctl -- noone would care.

(Please keep the CC list when replying.)

Whatever works; I prefer the local strtoul_cap_erange() in kernel/sysctl.c as
well.

Reply via email to