]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commitdiff
kernel/sysctl.c: fix the incomplete part of sysctl_max_map_count-should-be-non-negati...
authorWANG Cong <amwang@redhat.com>
Thu, 17 Dec 2009 23:27:05 +0000 (15:27 -0800)
committerLinus Torvalds <torvalds@linux-foundation.org>
Thu, 17 Dec 2009 23:45:30 +0000 (15:45 -0800)
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>
kernel/sysctl.c

index 45e4bef0012a6747d6608cbb78ba0f700a29d7cb..6665761c006d0a67a5600cebb38d6856906ef9c5 100644 (file)
@@ -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