|
@@ -1097,7 +1097,6 @@ static int __init vti6_tunnel_init(void)
|
|
|
|
|
|
err = xfrm6_protocol_register(&vti_esp6_protocol, IPPROTO_ESP);
|
|
err = xfrm6_protocol_register(&vti_esp6_protocol, IPPROTO_ESP);
|
|
if (err < 0) {
|
|
if (err < 0) {
|
|
- unregister_pernet_device(&vti6_net_ops);
|
|
|
|
pr_err("%s: can't register vti6 protocol\n", __func__);
|
|
pr_err("%s: can't register vti6 protocol\n", __func__);
|
|
|
|
|
|
goto out;
|
|
goto out;
|
|
@@ -1106,7 +1105,6 @@ static int __init vti6_tunnel_init(void)
|
|
err = xfrm6_protocol_register(&vti_ah6_protocol, IPPROTO_AH);
|
|
err = xfrm6_protocol_register(&vti_ah6_protocol, IPPROTO_AH);
|
|
if (err < 0) {
|
|
if (err < 0) {
|
|
xfrm6_protocol_deregister(&vti_esp6_protocol, IPPROTO_ESP);
|
|
xfrm6_protocol_deregister(&vti_esp6_protocol, IPPROTO_ESP);
|
|
- unregister_pernet_device(&vti6_net_ops);
|
|
|
|
pr_err("%s: can't register vti6 protocol\n", __func__);
|
|
pr_err("%s: can't register vti6 protocol\n", __func__);
|
|
|
|
|
|
goto out;
|
|
goto out;
|
|
@@ -1116,7 +1114,6 @@ static int __init vti6_tunnel_init(void)
|
|
if (err < 0) {
|
|
if (err < 0) {
|
|
xfrm6_protocol_deregister(&vti_ah6_protocol, IPPROTO_AH);
|
|
xfrm6_protocol_deregister(&vti_ah6_protocol, IPPROTO_AH);
|
|
xfrm6_protocol_deregister(&vti_esp6_protocol, IPPROTO_ESP);
|
|
xfrm6_protocol_deregister(&vti_esp6_protocol, IPPROTO_ESP);
|
|
- unregister_pernet_device(&vti6_net_ops);
|
|
|
|
pr_err("%s: can't register vti6 protocol\n", __func__);
|
|
pr_err("%s: can't register vti6 protocol\n", __func__);
|
|
|
|
|
|
goto out;
|
|
goto out;
|