mirror of
git://git.yoctoproject.org/linux-yocto.git
synced 2025-07-06 05:45:29 +02:00
vti4: ipip tunnel deregistration fixes.
[ Upstream commit5483844c3f
] If tunnel registration failed during module initialization, the module would fail to deregister the IPPROTO_COMP protocol and would attempt to deregister the tunnel. The tunnel was not deregistered during module-exit. Fixes:dd9ee34440
("vti4: Fix a ipip packet processing bug in 'IPCOMP' virtual tunnel") Signed-off-by: Jeremy Sowden <jeremy@azazel.net> Signed-off-by: Steffen Klassert <steffen.klassert@secunet.com> Signed-off-by: Sasha Levin <sashal@kernel.org>
This commit is contained in:
parent
f8a427ca50
commit
6c0db1cbf7
|
@ -659,9 +659,9 @@ static int __init vti_init(void)
|
||||||
return err;
|
return err;
|
||||||
|
|
||||||
rtnl_link_failed:
|
rtnl_link_failed:
|
||||||
xfrm4_protocol_deregister(&vti_ipcomp4_protocol, IPPROTO_COMP);
|
|
||||||
xfrm_tunnel_failed:
|
|
||||||
xfrm4_tunnel_deregister(&ipip_handler, AF_INET);
|
xfrm4_tunnel_deregister(&ipip_handler, AF_INET);
|
||||||
|
xfrm_tunnel_failed:
|
||||||
|
xfrm4_protocol_deregister(&vti_ipcomp4_protocol, IPPROTO_COMP);
|
||||||
xfrm_proto_comp_failed:
|
xfrm_proto_comp_failed:
|
||||||
xfrm4_protocol_deregister(&vti_ah4_protocol, IPPROTO_AH);
|
xfrm4_protocol_deregister(&vti_ah4_protocol, IPPROTO_AH);
|
||||||
xfrm_proto_ah_failed:
|
xfrm_proto_ah_failed:
|
||||||
|
@ -676,6 +676,7 @@ pernet_dev_failed:
|
||||||
static void __exit vti_fini(void)
|
static void __exit vti_fini(void)
|
||||||
{
|
{
|
||||||
rtnl_link_unregister(&vti_link_ops);
|
rtnl_link_unregister(&vti_link_ops);
|
||||||
|
xfrm4_tunnel_deregister(&ipip_handler, AF_INET);
|
||||||
xfrm4_protocol_deregister(&vti_ipcomp4_protocol, IPPROTO_COMP);
|
xfrm4_protocol_deregister(&vti_ipcomp4_protocol, IPPROTO_COMP);
|
||||||
xfrm4_protocol_deregister(&vti_ah4_protocol, IPPROTO_AH);
|
xfrm4_protocol_deregister(&vti_ah4_protocol, IPPROTO_AH);
|
||||||
xfrm4_protocol_deregister(&vti_esp4_protocol, IPPROTO_ESP);
|
xfrm4_protocol_deregister(&vti_esp4_protocol, IPPROTO_ESP);
|
||||||
|
|
Loading…
Reference in New Issue
Block a user