]> git.ipfire.org Git - thirdparty/kernel/stable-queue.git/blob
20efd53166afd19fb53a78b61a52897a76f14b2c
[thirdparty/kernel/stable-queue.git] /
1 From 3e26120cc7c819c97bc07281ca1fb9017cfe9a39 Mon Sep 17 00:00:00 2001
2 From: WANG Cong <amwang@redhat.com>
3 Date: Thu, 17 Dec 2009 15:27:05 -0800
4 Subject: kernel/sysctl.c: fix the incomplete part of sysctl_max_map_count-should-be-non-negative.patch
5
6 From: WANG Cong <amwang@redhat.com>
7
8 commit 3e26120cc7c819c97bc07281ca1fb9017cfe9a39 upstream.
9
10 It is a mistake that we used 'proc_dointvec', it should be
11 'proc_dointvec_minmax', as in the original patch.
12
13 Signed-off-by: WANG Cong <amwang@redhat.com>
14 Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
15 Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
16 Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
17
18 ---
19 kernel/sysctl.c | 2 +-
20 1 file changed, 1 insertion(+), 1 deletion(-)
21
22 --- a/kernel/sysctl.c
23 +++ b/kernel/sysctl.c
24 @@ -1607,7 +1607,7 @@ static struct ctl_table debug_table[] =
25 .data = &show_unhandled_signals,
26 .maxlen = sizeof(int),
27 .mode = 0644,
28 - .proc_handler = proc_dointvec,
29 + .proc_handler = proc_dointvec_minmax,
30 .extra1 = &zero,
31 },
32 #endif