diff options
author | Christophe JAILLET <christophe.jaillet@wanadoo.fr> | 2019-09-10 13:29:59 +0200 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2019-09-12 11:20:33 +0100 |
commit | d23dbc479a8e813db4161a695d67da0e36557846 (patch) | |
tree | 874b6982de49a551bb6bc0a591ce754c4b3d2bc1 /net/ipv6/ping.c | |
parent | 77f22f92dff8e7b45c7786a430626d38071d4670 (diff) |
ipv6: Fix the link time qualifier of 'ping_v6_proc_exit_net()'
The '.exit' functions from 'pernet_operations' structure should be marked
as __net_exit, not __net_init.
Fixes: d862e5461423 ("net: ipv6: Implement /proc/net/icmp6.")
Signed-off-by: Christophe JAILLET <christophe.jaillet@wanadoo.fr>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/ipv6/ping.c')
-rw-r--r-- | net/ipv6/ping.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net/ipv6/ping.c b/net/ipv6/ping.c index 87d2d8c1db7c..98ac32b49d8c 100644 --- a/net/ipv6/ping.c +++ b/net/ipv6/ping.c @@ -223,7 +223,7 @@ static int __net_init ping_v6_proc_init_net(struct net *net) return 0; } -static void __net_init ping_v6_proc_exit_net(struct net *net) +static void __net_exit ping_v6_proc_exit_net(struct net *net) { remove_proc_entry("icmp6", net->proc_net); } |