From: Christophe JAILLET Date: Tue, 10 Sep 2019 11:29:59 +0000 (+0200) Subject: ipv6: Fix the link time qualifier of 'ping_v6_proc_exit_net()' X-Git-Tag: v4.4.194~55 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b2786ad2c1117f553ce3071c7d25f235c9708bff;p=thirdparty%2Fkernel%2Fstable.git 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 Signed-off-by: David S. Miller Signed-off-by: Greg Kroah-Hartman --- diff --git a/net/ipv6/ping.c b/net/ipv6/ping.c index a830b68e63c94..c846cff269332 100644 --- a/net/ipv6/ping.c +++ b/net/ipv6/ping.c @@ -234,7 +234,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); }