]> git.ipfire.org Git - thirdparty/kernel/stable.git/commitdiff
ipv6: Fix the link time qualifier of 'ping_v6_proc_exit_net()'
authorChristophe JAILLET <christophe.jaillet@wanadoo.fr>
Tue, 10 Sep 2019 11:29:59 +0000 (13:29 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 19 Sep 2019 07:08:00 +0000 (09:08 +0200)
[ 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>
net/ipv6/ping.c

index ac826dd338ff0825eaf0d2d74cee92d008e018bb..d5cdba8213a44dc2d94d43ffcedf70c93c7dc034 100644 (file)
@@ -233,7 +233,7 @@ static int __net_init ping_v6_proc_init_net(struct net *net)
        return ping_proc_register(net, &ping_v6_seq_afinfo);
 }
 
-static void __net_init ping_v6_proc_exit_net(struct net *net)
+static void __net_exit ping_v6_proc_exit_net(struct net *net)
 {
        return ping_proc_unregister(net, &ping_v6_seq_afinfo);
 }