From: WANG Cong Date: Thu, 17 Dec 2009 23:27:05 +0000 (-0800) Subject: kernel/sysctl.c: fix the incomplete part of sysctl_max_map_count-should-be-non-negati... X-Git-Tag: v2.6.33-rc1~31 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=3e26120cc7c819c97bc07281ca1fb9017cfe9a39;p=platform%2Fupstream%2Fkernel-adaptation-pc.git 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 Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- diff --git a/kernel/sysctl.c b/kernel/sysctl.c index 45e4bef..6665761 100644 --- a/kernel/sysctl.c +++ b/kernel/sysctl.c @@ -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