mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-04 02:02:28 +09:00
ipv6: Fix the link time qualifier of 'ping_v6_proc_exit_net()'
[ Upstream commitd23dbc479a] The '.exit' functions from 'pernet_operations' structure should be marked as __net_exit, not __net_init. Fixes:d862e54614("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>
This commit is contained in:
committed by
Greg Kroah-Hartman
parent
31c8200360
commit
0826d3daa6
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user