Eric Dumazet 27b3d80a7b sysctl: fix min/max handling in __do_proc_doulongvec_minmax()
When proc_doulongvec_minmax() is used with an array of longs, and no
min/max check requested (.extra1 or .extra2 being NULL), we dereference a
NULL pointer for the second element of the array.

Noticed while doing some changes in network stack for the "16TB problem"

Fix is to not change min & max pointers in __do_proc_doulongvec_minmax(),
so that all elements of the vector share an unique min/max limit, like
proc_dointvec_minmax().

[akpm@linux-foundation.org: coding-style fixes]
Signed-off-by: Eric Dumazet <eric.dumazet@gmail.com>
Cc: "Eric W. Biederman" <ebiederm@xmission.com>
Cc: Americo Wang <xiyou.wangcong@gmail.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
2010-10-07 13:31:21 -07:00
..
2010-07-29 13:24:57 +02:00
2010-08-09 16:48:42 -04:00
2010-07-14 11:29:46 +02:00
2010-07-28 09:58:19 -04:00
2010-08-11 00:28:20 -04:00
2010-09-09 18:57:23 -07:00
2010-09-22 17:22:39 -07:00
2010-10-01 10:50:58 -07:00
2010-06-29 10:07:09 +02:00
2010-08-11 23:04:20 +09:30
2010-09-09 20:38:52 +02:00
2010-05-11 12:01:10 -07:00
2010-09-21 13:50:50 +02:00
2010-07-27 12:40:54 +02:00
2010-03-06 11:26:23 -08:00
2010-05-10 08:48:39 +02:00
2010-09-13 10:26:52 +02:00