]> git.baikalelectronics.ru Git - kernel.git/commit
neigh: fix setting of default gc_* values
authorJiri Pirko <jiri@resnulli.us>
Fri, 21 Feb 2014 13:52:57 +0000 (14:52 +0100)
committerDavid S. Miller <davem@davemloft.net>
Sat, 22 Feb 2014 05:08:10 +0000 (00:08 -0500)
commita6f1f0c4c9ac04c9d735ca5a9bc9c5401d30c5e2
tree876415b1a6ede2c0cb37d4c06b60ba97b058e811
parent16f36edfaae624d794b8f387c499e5e55bed9063
neigh: fix setting of default gc_* values

This patch fixes bug introduced by:
commit 42a0bb58b736e53634a4940c3200d9941013aa8a
"neigh: restore old behaviour of default parms values"

The thing is that in neigh_sysctl_register, extra1 and extra2 which were
previously set for NEIGH_VAR_GC_* are overwritten. That leads to
nonsense int limits for gc_* variables. So fix this by not touching
extra* fields for gc_* variables.

Signed-off-by: Jiri Pirko <jiri@resnulli.us>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/core/neighbour.c