From: Arun Ajith S Date: Tue, 19 Apr 2022 10:59:10 +0000 (+0000) Subject: net/ipv6: Enforce limits for accept_unsolicited_na sysctl X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=d09d3ec03f025fdc22e193277b30a7db20816d2b;p=linux.git 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 Reviewed-by: David Ahern Signed-off-by: David S. Miller --- diff --git a/net/ipv6/addrconf.c b/net/ipv6/addrconf.c index 6473dc84b71d8..f01b8a3e19528 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, },