diff options
Diffstat (limited to 'net/ipv4/icmp.c')
-rw-r--r-- | net/ipv4/icmp.c | 4 |
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 | ||
1200 | fail: | 1200 | fail: |
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 | ||