Message ID | 20221123093117.434274-7-steffen.klassert@secunet.com (mailing list archive) |
---|---|
State | Accepted |
Commit | 40781bfb836eda57d19c0baa37c7e72590e05fdc |
Delegated to: | Netdev Maintainers |
Headers | show |
Series | [1/6] xfrm: fix "disable_policy" on ipv4 early demux | expand |
diff --git a/net/ipv6/xfrm6_policy.c b/net/ipv6/xfrm6_policy.c index 4a4b0e49ec92..ea435eba3053 100644 --- a/net/ipv6/xfrm6_policy.c +++ b/net/ipv6/xfrm6_policy.c @@ -287,9 +287,13 @@ int __init xfrm6_init(void) if (ret) goto out_state; - register_pernet_subsys(&xfrm6_net_ops); + ret = register_pernet_subsys(&xfrm6_net_ops); + if (ret) + goto out_protocol; out: return ret; +out_protocol: + xfrm6_protocol_fini(); out_state: xfrm6_state_fini(); out_policy: