neigh: prevent overflowing params in /proc/sys/net/ipv4/neigh/
authorFrancesco Fusco <ffusco@redhat.com>
Wed, 24 Jul 2013 08:39:06 +0000 (10:39 +0200)
committerDavid S. Miller <davem@davemloft.net>
Fri, 26 Jul 2013 21:22:10 +0000 (14:22 -0700)
commit555445cd11803c6bc93b2be31968f3949ef7708b
tree93fdd168676eac5f02b1f4ee349247a3aa8332b3
parent111cc5da2a95568ca20a5f86f43ae328c069e455
neigh: prevent overflowing params in /proc/sys/net/ipv4/neigh/

Without this patch, the fields app_solicit, gc_thresh1, gc_thresh2,
gc_thresh3, proxy_qlen, ucast_solicit, mcast_solicit could have
assumed negative values when setting large numbers.

Signed-off-by: Francesco Fusco <ffusco@redhat.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/core/neighbour.c