mirror of
https://github.com/adulau/aha.git
synced 2024-12-26 18:56:14 +00:00
kernel/sysctl.c: fix the incomplete part of sysctl_max_map_count-should-be-non-negative.patch
It is a mistake that we used 'proc_dointvec', it should be 'proc_dointvec_minmax', as in the original patch. Signed-off-by: WANG Cong <amwang@redhat.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
This commit is contained in:
parent
b6e3224fb2
commit
3e26120cc7
1 changed files with 1 additions and 1 deletions
|
@ -1131,7 +1131,7 @@ static struct ctl_table vm_table[] = {
|
|||
.data = &sysctl_max_map_count,
|
||||
.maxlen = sizeof(sysctl_max_map_count),
|
||||
.mode = 0644,
|
||||
.proc_handler = proc_dointvec,
|
||||
.proc_handler = proc_dointvec_minmax,
|
||||
.extra1 = &zero,
|
||||
},
|
||||
#else
|
||||
|
|
Loading…
Reference in a new issue