diff options
author | Christophe JAILLET <christophe.jaillet@wanadoo.fr> | 2019-09-10 13:29:59 +0200 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2019-09-19 09:09:28 +0200 |
commit | ea6ec671c87e295eaf3e9ea0aa9b32a674ffc8cf (patch) | |
tree | 8b4c62a8658bef3b89e95c9127c4083f1bf29049 | |
parent | a20c8e4ae48dd2fba58fce042c2b8653116419df (diff) | |
download | linux-stable-ea6ec671c87e295eaf3e9ea0aa9b32a674ffc8cf.tar.gz linux-stable-ea6ec671c87e295eaf3e9ea0aa9b32a674ffc8cf.tar.bz2 linux-stable-ea6ec671c87e295eaf3e9ea0aa9b32a674ffc8cf.zip |
ipv6: Fix the link time qualifier of 'ping_v6_proc_exit_net()'
[ Upstream commit d23dbc479a8e813db4161a695d67da0e36557846 ]
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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
-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 4c04bccc7417..5c9be8594483 100644 --- a/net/ipv6/ping.c +++ b/net/ipv6/ping.c @@ -228,7 +228,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); } |