Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

sysctl: clarify proc_douintvec_minmax doc

Specify that the range check is only when assigning kernel variable

Signed-off-by: Joel Granados <joel.granados@kernel.org>

+4 -4
+4 -4
kernel/sysctl.c
··· 692 692 * values from/to the user buffer, treated as an ASCII string. Negative 693 693 * strings are not allowed. 694 694 * 695 - * This routine will ensure the values are within the range specified by 696 - * table->extra1 (min) and table->extra2 (max). There is a final sanity 697 - * check for UINT_MAX to avoid having to support wrap around uses from 698 - * userspace. 695 + * When changing the kernel variable, this routine will ensure the values 696 + * are within the range specified by table->extra1 (min) and table->extra2 697 + * (max). And Check that the values are less than UINT_MAX to avoid having to 698 + * support wrap around uses from userspace. 699 699 * 700 700 * Returns 0 on success or -ERANGE when range check failes and 701 701 * SYSCTL_USER_TO_KERN(dir) == true