diff options
author | Arun Ajith S <aajith@arista.com> | 2022-04-19 13:59:10 +0300 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2022-04-22 12:32:54 +0300 |
commit | d09d3ec03f025fdc22e193277b30a7db20816d2b (patch) | |
tree | 4f089d238cff99c4bd5831874025ec75845335e8 /net/ipv6 | |
parent | 1c604f91b7735a8d55ba56c8580b4b9276d6d7ab (diff) | |
download | linux-d09d3ec03f025fdc22e193277b30a7db20816d2b.tar.xz |
net/ipv6: Enforce limits for accept_unsolicited_na sysctl
Fix mistake in the original patch where limits were specified but the
handler didn't take care of the limits.
Signed-off-by: Arun Ajith S <aajith@arista.com>
Reviewed-by: David Ahern <dsahern@kernel.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/ipv6')
-rw-r--r-- | net/ipv6/addrconf.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net/ipv6/addrconf.c b/net/ipv6/addrconf.c index 6473dc84b71d..f01b8a3e1952 100644 --- a/net/ipv6/addrconf.c +++ b/net/ipv6/addrconf.c @@ -7043,7 +7043,7 @@ static const struct ctl_table addrconf_sysctl[] = { .data = &ipv6_devconf.accept_unsolicited_na, .maxlen = sizeof(int), .mode = 0644, - .proc_handler = proc_dointvec, + .proc_handler = proc_dointvec_minmax, .extra1 = (void *)SYSCTL_ZERO, .extra2 = (void *)SYSCTL_ONE, }, |