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

sysctl: Return -ENOSYS from proc_douintvec_conv when CONFIG_PROC_SYSCTL=n

Ensure an error if prco_douintvec_conv is erroneously called in a system
with CONFIG_PROC_SYSCTL=n

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

+8
+8
kernel/sysctl.c
··· 1071 1071 return -ENOSYS; 1072 1072 } 1073 1073 1074 + int proc_douintvec_conv(const struct ctl_table *table, int write, void *buffer, 1075 + size_t *lenp, loff_t *ppos, 1076 + int (*conv)(unsigned long *lvalp, unsigned int *valp, 1077 + int write, const struct ctl_table *table)) 1078 + { 1079 + return -ENOSYS; 1080 + } 1081 + 1074 1082 int proc_dou8vec_minmax(const struct ctl_table *table, int dir, 1075 1083 void *buffer, size_t *lenp, loff_t *ppos) 1076 1084 {