diff options
| author | Eric Dumazet <[email protected]> | 2021-03-30 21:06:13 +0000 |
|---|---|---|
| committer | David S. Miller <[email protected]> | 2021-03-31 00:38:43 +0000 |
| commit | b8128656a5edd23a91542c9da849cd878a54148d (patch) | |
| tree | f0061206d7e52763f2584310d3b6cd47e709bb61 /net/ipv4/sysctl_net_ipv4.c | |
| parent | Merge branch 'ionic-cleanups' (diff) | |
| download | kernel-b8128656a5edd23a91542c9da849cd878a54148d.tar.gz kernel-b8128656a5edd23a91542c9da849cd878a54148d.zip | |
net: fix icmp_echo_enable_probe sysctl
sysctl_icmp_echo_enable_probe is an u8.
ipv4_net_table entry should use
.maxlen = sizeof(u8).
.proc_handler = proc_dou8vec_minmax,
Fixes: f1b8fa9fa586 ("net: add sysctl for enabling RFC 8335 PROBE messages")
Signed-off-by: Eric Dumazet <[email protected]>
Cc: Andreas Roeseler <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
Diffstat (limited to 'net/ipv4/sysctl_net_ipv4.c')
| -rw-r--r-- | net/ipv4/sysctl_net_ipv4.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/net/ipv4/sysctl_net_ipv4.c b/net/ipv4/sysctl_net_ipv4.c index e3cb2d96b55e..9199f507a005 100644 --- a/net/ipv4/sysctl_net_ipv4.c +++ b/net/ipv4/sysctl_net_ipv4.c @@ -601,9 +601,9 @@ static struct ctl_table ipv4_net_table[] = { { .procname = "icmp_echo_enable_probe", .data = &init_net.ipv4.sysctl_icmp_echo_enable_probe, - .maxlen = sizeof(int), + .maxlen = sizeof(u8), .mode = 0644, - .proc_handler = proc_dointvec_minmax, + .proc_handler = proc_dou8vec_minmax, .extra1 = SYSCTL_ZERO, .extra2 = SYSCTL_ONE }, |
