Skip to content

Commit d23dbc4

Browse files
tititiou36davem330
authored andcommitted
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: d862e54 ("net: ipv6: Implement /proc/net/icmp6.") Signed-off-by: Christophe JAILLET <[email protected]> Signed-off-by: David S. Miller <[email protected]>
1 parent 77f22f9 commit d23dbc4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

net/ipv6/ping.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -223,7 +223,7 @@ static int __net_init ping_v6_proc_init_net(struct net *net)
223223
return 0;
224224
}
225225

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)
227227
{
228228
remove_proc_entry("icmp6", net->proc_net);
229229
}

0 commit comments

Comments
 (0)