Commit 11400f86 authored by Joel Granados's avatar Joel Granados
Browse files

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: default avatarJoel Granados <joel.granados@kernel.org>
parent f7386f54
Loading
Loading
Loading
Loading
+8 −0
Original line number Diff line number Diff line
@@ -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)
{