Commit 3e26120cc7c819c97bc07281ca1fb9017cfe9a39

Authored by WANG Cong
Committed by Linus Torvalds
1 parent b6e3224fb2

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>

Showing 1 changed file with 1 additions and 1 deletions Side-by-side Diff

... ... @@ -1131,7 +1131,7 @@
1131 1131 .data = &sysctl_max_map_count,
1132 1132 .maxlen = sizeof(sysctl_max_map_count),
1133 1133 .mode = 0644,
1134   - .proc_handler = proc_dointvec,
  1134 + .proc_handler = proc_dointvec_minmax,
1135 1135 .extra1 = &zero,
1136 1136 },
1137 1137 #else