From: Joel Granados Date: Mon, 8 Dec 2025 13:33:17 +0000 (+0100) Subject: sysctl: Return -ENOSYS from proc_douintvec_conv when CONFIG_PROC_SYSCTL=n X-Git-Tag: v7.0-rc1~52^2~6 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=11400f86c28eaeb8d0cc22fef3f16fdd87d46214;p=thirdparty%2Fkernel%2Flinux.git 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 --- diff --git a/kernel/sysctl.c b/kernel/sysctl.c index ae937c1b5272..e9bc1161ecfb 100644 --- a/kernel/sysctl.c +++ b/kernel/sysctl.c @@ -1071,6 +1071,14 @@ int proc_douintvec_minmax(const struct ctl_table *table, int dir, return -ENOSYS; } +int proc_douintvec_conv(const struct ctl_table *table, int write, void *buffer, + size_t *lenp, loff_t *ppos, + int (*conv)(unsigned long *lvalp, unsigned int *valp, + int write, const struct ctl_table *table)) +{ + return -ENOSYS; +} + int proc_dou8vec_minmax(const struct ctl_table *table, int dir, void *buffer, size_t *lenp, loff_t *ppos) {