diff options
| author | Chris Metcalf <cmetcalf@tilera.com> | 2010-08-06 10:37:02 -0400 |
|---|---|---|
| committer | Chris Metcalf <cmetcalf@tilera.com> | 2010-08-06 10:37:02 -0400 |
| commit | ab11b487402f97975f3ac1eeea09c82f4431481e (patch) | |
| tree | 86337c5cbbd2b0c4bd07c0847a1dc7de3d898147 /net/ipv6/fib6_rules.c | |
| parent | 1c689cbcf2c2b7a35cd237abddd9206bb1b6fee1 (diff) | |
| parent | fc1caf6eafb30ea185720e29f7f5eccca61ecd60 (diff) | |
Merge branch 'master' into for-linus
Diffstat (limited to 'net/ipv6/fib6_rules.c')
| -rw-r--r-- | net/ipv6/fib6_rules.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/net/ipv6/fib6_rules.c b/net/ipv6/fib6_rules.c index 8e44f8f9c188..b1108ede18e1 100644 --- a/net/ipv6/fib6_rules.c +++ b/net/ipv6/fib6_rules.c | |||
| @@ -43,8 +43,8 @@ struct dst_entry *fib6_rule_lookup(struct net *net, struct flowi *fl, | |||
| 43 | if (arg.result) | 43 | if (arg.result) |
| 44 | return arg.result; | 44 | return arg.result; |
| 45 | 45 | ||
| 46 | dst_hold(&net->ipv6.ip6_null_entry->u.dst); | 46 | dst_hold(&net->ipv6.ip6_null_entry->dst); |
| 47 | return &net->ipv6.ip6_null_entry->u.dst; | 47 | return &net->ipv6.ip6_null_entry->dst; |
| 48 | } | 48 | } |
| 49 | 49 | ||
| 50 | static int fib6_rule_action(struct fib_rule *rule, struct flowi *flp, | 50 | static int fib6_rule_action(struct fib_rule *rule, struct flowi *flp, |
| @@ -86,7 +86,7 @@ static int fib6_rule_action(struct fib_rule *rule, struct flowi *flp, | |||
| 86 | struct in6_addr saddr; | 86 | struct in6_addr saddr; |
| 87 | 87 | ||
| 88 | if (ipv6_dev_get_saddr(net, | 88 | if (ipv6_dev_get_saddr(net, |
| 89 | ip6_dst_idev(&rt->u.dst)->dev, | 89 | ip6_dst_idev(&rt->dst)->dev, |
| 90 | &flp->fl6_dst, | 90 | &flp->fl6_dst, |
| 91 | rt6_flags2srcprefs(flags), | 91 | rt6_flags2srcprefs(flags), |
| 92 | &saddr)) | 92 | &saddr)) |
| @@ -99,12 +99,12 @@ static int fib6_rule_action(struct fib_rule *rule, struct flowi *flp, | |||
| 99 | goto out; | 99 | goto out; |
| 100 | } | 100 | } |
| 101 | again: | 101 | again: |
| 102 | dst_release(&rt->u.dst); | 102 | dst_release(&rt->dst); |
| 103 | rt = NULL; | 103 | rt = NULL; |
| 104 | goto out; | 104 | goto out; |
| 105 | 105 | ||
| 106 | discard_pkt: | 106 | discard_pkt: |
| 107 | dst_hold(&rt->u.dst); | 107 | dst_hold(&rt->dst); |
| 108 | out: | 108 | out: |
| 109 | arg->result = rt; | 109 | arg->result = rt; |
| 110 | return rt == NULL ? -EAGAIN : 0; | 110 | return rt == NULL ? -EAGAIN : 0; |
