mirror of
https://github.com/torvalds/linux.git
synced 2026-03-08 04:24:31 +01:00
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>
This commit is contained in:
parent
f7386f545e
commit
11400f86c2
1 changed files with 8 additions and 0 deletions
|
|
@ -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)
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue