Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

authored by

Christophe JAILLET and committed by
David S. Miller
d23dbc47 77f22f92

+1 -1
+1 -1
net/ipv6/ping.c
··· 223 223 return 0; 224 224 } 225 225 226 - static void __net_init ping_v6_proc_exit_net(struct net *net) 226 + static void __net_exit ping_v6_proc_exit_net(struct net *net) 227 227 { 228 228 remove_proc_entry("icmp6", net->proc_net); 229 229 }