Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 232485
b: refs/heads/master
c: 7cc2edb
h: refs/heads/master
i:
  232483: 9de04b0
v: v3
  • Loading branch information
David S. Miller committed Jan 26, 2011
1 parent 859bc55 commit 44de949
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 34c92049ac15dcb731dc455d165b4c3c1df569cf
refs/heads/master: 7cc2edb83447775a34ed3bf9d29d8295a434b523
6 changes: 6 additions & 0 deletions trunk/net/ipv6/xfrm6_policy.c
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,10 @@ static int xfrm6_fill_dst(struct xfrm_dst *xdst, struct net_device *dev,
if (!xdst->u.rt6.rt6i_idev)
return -ENODEV;

xdst->u.rt6.rt6i_peer = rt->rt6i_peer;
if (rt->rt6i_peer)
atomic_inc(&rt->rt6i_peer->refcnt);

/* Sheit... I remember I did this right. Apparently,
* it was magically lost, so this code needs audit */
xdst->u.rt6.rt6i_flags = rt->rt6i_flags & (RTF_ANYCAST |
Expand Down Expand Up @@ -216,6 +220,8 @@ static void xfrm6_dst_destroy(struct dst_entry *dst)

if (likely(xdst->u.rt6.rt6i_idev))
in6_dev_put(xdst->u.rt6.rt6i_idev);
if (likely(xdst->u.rt6.rt6i_peer))
inet_putpeer(xdst->u.rt6.rt6i_peer);
xfrm_dst_destroy(xdst);
}

Expand Down

0 comments on commit 44de949

Please sign in to comment.