summaryrefslogtreecommitdiffstats
path: root/net
diff options
context:
space:
mode:
authorEiichi Tsukata <devel@etsukata.com>2019-06-25 05:08:01 +0200
committerDavid S. Miller <davem@davemloft.net>2019-06-25 21:59:04 +0200
commitb8e8a86337c25941cb06e9a1c8ee01ab9aab0cc2 (patch)
tree3559461b96229a9441073259e2e66f7f78f2013a /net
parentipv4: Use return value of inet_iif() for __raw_v4_lookup in the while loop (diff)
downloadlinux-b8e8a86337c25941cb06e9a1c8ee01ab9aab0cc2.tar.xz
linux-b8e8a86337c25941cb06e9a1c8ee01ab9aab0cc2.zip
net/ipv6: Fix misuse of proc_dointvec "skip_notify_on_dev_down"
/proc/sys/net/ipv6/route/skip_notify_on_dev_down assumes given value to be 0 or 1. Use proc_dointvec_minmax instead of proc_dointvec. Fixes: 7c6bb7d2faaf ("net/ipv6: Add knob to skip DELROUTE message ondevice down") Signed-off-by: Eiichi Tsukata <devel@etsukata.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net')
-rw-r--r--net/ipv6/route.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/net/ipv6/route.c b/net/ipv6/route.c
index 11ad62effd56..aade636c6be6 100644
--- a/net/ipv6/route.c
+++ b/net/ipv6/route.c
@@ -5281,7 +5281,7 @@ static struct ctl_table ipv6_route_table_template[] = {
.data = &init_net.ipv6.sysctl.skip_notify_on_dev_down,
.maxlen = sizeof(int),
.mode = 0644,
- .proc_handler = proc_dointvec,
+ .proc_handler = proc_dointvec_minmax,
.extra1 = &zero,
.extra2 = &one,
},