]> git.baikalelectronics.ru Git - kernel.git/commit
sysctl: min/max bounds are optional
authorEric Dumazet <eric.dumazet@gmail.com>
Fri, 15 Oct 2010 21:34:12 +0000 (14:34 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Fri, 15 Oct 2010 21:42:24 +0000 (14:42 -0700)
commit02bd255d5ffa25e68d6ee9cbb2c81de0f389544f
tree7367bee631d0a050e0d392102dd652ec48a57a08
parentac00d9287617c4b9fcc065085dff47d1523236a4
sysctl: min/max bounds are optional

sysctl check complains with a WARN() when proc_doulongvec_minmax() or
proc_doulongvec_ms_jiffies_minmax() are used by a vector of longs (with
more than one element), with no min or max value specified.

This is unexpected, given we had a bug on this min/max handling :)

Reported-by: Jiri Slaby <jirislaby@gmail.com>
Signed-off-by: Eric Dumazet <eric.dumazet@gmail.com>
Cc: "Eric W. Biederman" <ebiederm@xmission.com>
Cc: David Miller <davem@davemloft.net>
Acked-by: WANG Cong <xiyou.wangcong@gmail.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
kernel/sysctl_check.c