aboutsummaryrefslogtreecommitdiffstats
path: root/net
diff options
context:
space:
mode:
authorDenis V. Lunev <den@openvz.org>2008-02-29 17:15:19 -0500
committerDavid S. Miller <davem@davemloft.net>2008-02-29 17:15:19 -0500
commit1d1c8d13c4f7690d382bca5de2f9dc88f22a4aab (patch)
tree5b028db28a605687c30447b73800f6ef0aded570 /net
parent4a80f2788952055a627f2093a0174537d70aec1b (diff)
[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: Denis V. Lunev <den@openvz.org> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net')
-rw-r--r--net/ipv4/icmp.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/net/ipv4/icmp.c b/net/ipv4/icmp.c
index b51f4b0a3264..cee77d606fbe 100644
--- a/net/ipv4/icmp.c
+++ b/net/ipv4/icmp.c
@@ -1198,7 +1198,9 @@ int __net_init icmp_sk_init(struct net *net)
1198 return 0; 1198 return 0;
1199 1199
1200fail: 1200fail:
1201 icmp_sk_exit(net); 1201 for_each_possible_cpu(i)
1202 sk_release_kernel(net->ipv4.icmp_sk[i]);
1203 kfree(net->ipv4.icmp_sk);
1202 return err; 1204 return err;
1203} 1205}
1204 1206