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-Url: https://git.stricted.de/?a=commitdiff_plain;h=3e26120cc7c819c97bc07281ca1fb9017cfe9a39;p=GitHub%2FLineageOS%2Fandroid_kernel_motorola_exynos9610.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 45e4bef0012a..6665761c006d 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