Message ID | 20231017083723.1364940-5-steffen.klassert@secunet.com (mailing list archive) |
---|---|
State | Accepted |
Commit | cc9b364bb1d58d3dae270c7a931a8cc717dc2b3b |
Delegated to: | Netdev Maintainers |
Headers | show |
Series | [1/7] net: xfrm: skip policies marked as dead while reinserting policies | expand |
diff --git a/net/ipv6/xfrm6_policy.c b/net/ipv6/xfrm6_policy.c index 188224a76685..45d0f9a8b28c 100644 --- a/net/ipv6/xfrm6_policy.c +++ b/net/ipv6/xfrm6_policy.c @@ -117,10 +117,10 @@ static void xfrm6_dst_destroy(struct dst_entry *dst) { struct xfrm_dst *xdst = (struct xfrm_dst *)dst; - if (likely(xdst->u.rt6.rt6i_idev)) - in6_dev_put(xdst->u.rt6.rt6i_idev); dst_destroy_metrics_generic(dst); rt6_uncached_list_del(&xdst->u.rt6); + if (likely(xdst->u.rt6.rt6i_idev)) + in6_dev_put(xdst->u.rt6.rt6i_idev); xfrm_dst_destroy(xdst); }