提交 1d1c8d13 编写于 作者: D Denis V. Lunev 提交者: David S. Miller

[ICMP]: Section conflict between icmp_sk_init/icmp_sk_exit.

Functions from __exit section should not be called from ones in __init
section. Fix this conflict.
Signed-off-by: NDenis V. Lunev <den@openvz.org>
Signed-off-by: NDavid S. Miller <davem@davemloft.net>
上级 4a80f278
......@@ -1198,7 +1198,9 @@ int __net_init icmp_sk_init(struct net *net)
return 0;
fail:
icmp_sk_exit(net);
for_each_possible_cpu(i)
sk_release_kernel(net->ipv4.icmp_sk[i]);
kfree(net->ipv4.icmp_sk);
return err;
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册