Commit d09d3ec0 authored by Arun Ajith S's avatar Arun Ajith S Committed by David S. Miller
Browse files

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: default avatarArun Ajith S <aajith@arista.com>
Reviewed-by: default avatarDavid Ahern <dsahern@kernel.org>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 1c604f91
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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,
	},