Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 315359
b: refs/heads/master
c: 8104891
h: refs/heads/master
i:
  315357: 22a2ea9
  315355: 426f184
  315351: cd60cd0
  315343: fd3161b
  315327: 2e96044
v: v3
  • Loading branch information
Steffen Klassert authored and David S. Miller committed Jul 14, 2012
1 parent 1a1a0e4 commit ad66dc0
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 6 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: 921a678cb6825900478f1e8e9c59035f8c67aa32
refs/heads/master: 8104891b86b212de77063660c0c062b427526fa6
11 changes: 6 additions & 5 deletions trunk/net/ipv6/route.c
Original file line number Diff line number Diff line change
Expand Up @@ -280,8 +280,9 @@ static inline struct rt6_info *ip6_dst_alloc(struct net *net,
0, 0, flags);

if (rt) {
memset(&rt->n, 0,
sizeof(*rt) - sizeof(struct dst_entry));
struct dst_entry *dst = &rt->dst;

memset(dst + 1, 0, sizeof(*rt) - sizeof(*dst));
rt6_init_peer(rt, table ? &table->tb6_peers : net->ipv6.peers);
}
return rt;
Expand Down Expand Up @@ -982,11 +983,11 @@ struct dst_entry *ip6_blackhole_route(struct net *net, struct dst_entry *dst_ori

rt = dst_alloc(&ip6_dst_blackhole_ops, ort->dst.dev, 1, 0, 0);
if (rt) {
memset(&rt->rt6i_table, 0, sizeof(*rt) - sizeof(struct dst_entry));
rt6_init_peer(rt, net->ipv6.peers);

new = &rt->dst;

memset(new + 1, 0, sizeof(*rt) - sizeof(*new));
rt6_init_peer(rt, net->ipv6.peers);

new->__use = 1;
new->input = dst_discard;
new->output = dst_discard;
Expand Down

0 comments on commit ad66dc0

Please sign in to comment.