summaryrefslogtreecommitdiffstats
path: root/net/xfrm/xfrm_output.c
diff options
context:
space:
mode:
authorDavid Miller <davem@davemloft.net>2017-11-28 15:40:22 -0500
committerDavid S. Miller <davem@davemloft.net>2017-11-30 09:54:25 -0500
commitb92cf4aab8e688b1bd501ac2ac4f1b5c99601e3b (patch)
treef8fb92d4c9394bdf61716d074b9aaa15fbf22450 /net/xfrm/xfrm_output.c
parent071fb37ec43dcd88937a669c5f97bd37f7d29dea (diff)
downloadlinux-stable-b92cf4aab8e688b1bd501ac2ac4f1b5c99601e3b.tar.gz
linux-stable-b92cf4aab8e688b1bd501ac2ac4f1b5c99601e3b.tar.bz2
linux-stable-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/xfrm/xfrm_output.c')
-rw-r--r--net/xfrm/xfrm_output.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/net/xfrm/xfrm_output.c b/net/xfrm/xfrm_output.c
index 73ad8c8ef344..23468672a767 100644
--- a/net/xfrm/xfrm_output.c
+++ b/net/xfrm/xfrm_output.c
@@ -44,7 +44,7 @@ static int xfrm_skb_check_space(struct sk_buff *skb)
static struct dst_entry *skb_dst_pop(struct sk_buff *skb)
{
- struct dst_entry *child = dst_clone(skb_dst(skb)->child);
+ struct dst_entry *child = dst_clone(xfrm_dst_child(skb_dst(skb)));
skb_dst_drop(skb);
return child;