Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 1d1c8d13 authored by Denis V. Lunev's avatar Denis V. Lunev Committed by David S. Miller
Browse files

[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: default avatarDenis V. Lunev <den@openvz.org>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 4a80f278
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -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;
}