diff options
author | David Miller <davem@davemloft.net> | 2017-11-28 21:40:22 +0100 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2017-11-30 15:54:25 +0100 |
commit | b92cf4aab8e688b1bd501ac2ac4f1b5c99601e3b (patch) | |
tree | f8fb92d4c9394bdf61716d074b9aaa15fbf22450 /net/ipv6/xfrm6_policy.c | |
parent | ipv6: Move rt6_next from dst_entry into ipv6 route structure. (diff) | |
download | linux-b92cf4aab8e688b1bd501ac2ac4f1b5c99601e3b.tar.xz linux-b92cf4aab8e688b1bd501ac2ac4f1b5c99601e3b.zip |
net: Create and use new helper xfrm_dst_child().
Only IPSEC routes have a non-NULL dst->child pointer. And IPSEC
routes are identified by a non-NULL dst->xfrm pointer.
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/ipv6/xfrm6_policy.c')
-rw-r--r-- | net/ipv6/xfrm6_policy.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net/ipv6/xfrm6_policy.c b/net/ipv6/xfrm6_policy.c index 885ade234a49..09fb44ee3b45 100644 --- a/net/ipv6/xfrm6_policy.c +++ b/net/ipv6/xfrm6_policy.c @@ -265,7 +265,7 @@ static void xfrm6_dst_ifdown(struct dst_entry *dst, struct net_device *dev, in6_dev_put(xdst->u.rt6.rt6i_idev); xdst->u.rt6.rt6i_idev = loopback_idev; in6_dev_hold(loopback_idev); - xdst = (struct xfrm_dst *)xdst->u.dst.child; + xdst = (struct xfrm_dst *)xfrm_dst_child(&xdst->u.dst); } while (xdst->u.dst.xfrm); __in6_dev_put(loopback_idev); |