Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 264165
b: refs/heads/master
c: d4cae56
h: refs/heads/master
i:
  264163: 3aeae0b
v: v3
  • Loading branch information
Madalin Bucur authored and David S. Miller committed Sep 27, 2011
1 parent 0651218 commit 86e3ca8
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 2015de5fe2a47086a3260802275932bfd810884e
refs/heads/master: d4cae56219755ccf8acfc8e2c1927009ff29d8c6
10 changes: 6 additions & 4 deletions trunk/net/xfrm/xfrm_policy.c
Original file line number Diff line number Diff line change
Expand Up @@ -1349,14 +1349,16 @@ static inline struct xfrm_dst *xfrm_alloc_dst(struct net *net, int family)
BUG();
}
xdst = dst_alloc(dst_ops, NULL, 0, 0, 0);
memset(&xdst->u.rt6.rt6i_table, 0, sizeof(*xdst) - sizeof(struct dst_entry));
xfrm_policy_put_afinfo(afinfo);

if (likely(xdst))
if (likely(xdst)) {
memset(&xdst->u.rt6.rt6i_table, 0,
sizeof(*xdst) - sizeof(struct dst_entry));
xdst->flo.ops = &xfrm_bundle_fc_ops;
else
} else
xdst = ERR_PTR(-ENOBUFS);

xfrm_policy_put_afinfo(afinfo);

return xdst;
}

Expand Down

0 comments on commit 86e3ca8

Please sign in to comment.