Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 90791
b: refs/heads/master
c: 48115be
h: refs/heads/master
i:
  90789: 1d91665
  90787: fe62572
  90783: c4d5f59
v: v3
  • Loading branch information
Denis V. Lunev authored and David S. Miller committed Apr 16, 2008
1 parent 6965e59 commit 4722686
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 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: 8c5da49a63c7675a3e137eb384b982e562622342
refs/heads/master: 48115becf6ad9c0e700ff7c1792b7f2a288ef8fb
4 changes: 3 additions & 1 deletion trunk/net/ipv6/route.c
Original file line number Diff line number Diff line change
Expand Up @@ -2622,7 +2622,7 @@ static int ip6_route_net_init(struct net *net)
GFP_KERNEL);
if (!net->ipv6.ip6_dst_ops)
goto out;
net->ipv6.ip6_dst_ops->dst_net = net;
net->ipv6.ip6_dst_ops->dst_net = hold_net(net);

net->ipv6.ip6_null_entry = kmemdup(&ip6_null_entry_template,
sizeof(*net->ipv6.ip6_null_entry),
Expand Down Expand Up @@ -2669,6 +2669,7 @@ static int ip6_route_net_init(struct net *net)
return ret;

out_ip6_dst_ops:
release_net(net->ipv6.ip6_dst_ops->dst_net);
kfree(net->ipv6.ip6_dst_ops);
goto out;
}
Expand All @@ -2684,6 +2685,7 @@ static void ip6_route_net_exit(struct net *net)
kfree(net->ipv6.ip6_prohibit_entry);
kfree(net->ipv6.ip6_blk_hole_entry);
#endif
release_net(net->ipv6.ip6_dst_ops->dst_net);
kfree(net->ipv6.ip6_dst_ops);
}

Expand Down

0 comments on commit 4722686

Please sign in to comment.