net/ipv4: fix sysctl max for fib_multipath_hash_policy
authorMarcelo Ricardo Leitner <marcelo.leitner@gmail.com>
Mon, 18 Nov 2019 12:46:09 +0000 (09:46 -0300)
committerDavid S. Miller <davem@davemloft.net>
Tue, 19 Nov 2019 01:25:36 +0000 (17:25 -0800)
commitca749bbb108c24a876014c804f9777c545be4d59
treec4080facccf65a9f9b2f907f7780dde9b745d3db
parent39c68b3fc2c3c84ffdfdb867c136c5b41b29d6d0
net/ipv4: fix sysctl max for fib_multipath_hash_policy

Commit eec4844fae7c ("proc/sysctl: add shared variables for range
check") did:
-               .extra2         = &two,
+               .extra2         = SYSCTL_ONE,
here, which doesn't seem to be intentional, given the changelog.
This patch restores it to the previous, as the value of 2 still makes
sense (used in fib_multipath_hash()).

Fixes: eec4844fae7c ("proc/sysctl: add shared variables for range check")
Cc: Matteo Croce <mcroce@redhat.com>
Signed-off-by: Marcelo Ricardo Leitner <marcelo.leitner@gmail.com>
Acked-by: Matteo Croce <mcroce@redhat.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/ipv4/sysctl_net_ipv4.c