OSDN Git Service

net/ipv6: Fix misuse of proc_dointvec "flowlabel_reflect"
authorEiichi Tsukata <devel@etsukata.com>
Fri, 28 Jun 2019 02:37:14 +0000 (11:37 +0900)
committerDavid S. Miller <davem@davemloft.net>
Tue, 2 Jul 2019 02:04:48 +0000 (19:04 -0700)
commit00dc3307c0f7a8bdc79409e0a00d86efea93e0ea
tree4ed34e2ec4e7f81b2f5be2a2bd8c83b1f3b972c2
parent27ba4059e06b3bbd38a7d944fd5a78cdf47534f4
net/ipv6: Fix misuse of proc_dointvec "flowlabel_reflect"

/proc/sys/net/ipv6/flowlabel_reflect assumes written value to be in the
range of 0 to 3. Use proc_dointvec_minmax instead of proc_dointvec.

Fixes: 323a53c41292 ("ipv6: tcp: enable flowlabel reflection in some RST packets")
Signed-off-by: Eiichi Tsukata <devel@etsukata.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/ipv6/sysctl_net_ipv6.c