From: Patrick McHardy Date: Mon, 7 Aug 2006 05:24:08 +0000 (-0700) Subject: [IPV6]: Fix policy routing lookup X-Git-Tag: v2.6.19-rc1~1272^2~314 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=3226f6881719e61e00e92b4c85a8ef49aa4d42b1;p=profile%2Fivi%2Fkernel-adaptation-intel-automotive.git [IPV6]: Fix policy routing lookup When the lookup in a table returns ip6_null_entry the policy routing lookup returns it instead of continuing in the next table, which effectively means it only searches the local table. Signed-off-by: Patrick McHardy Signed-off-by: David S. Miller --- diff --git a/net/ipv6/fib6_rules.c b/net/ipv6/fib6_rules.c index c3c8195..94a46ec 100644 --- a/net/ipv6/fib6_rules.c +++ b/net/ipv6/fib6_rules.c @@ -94,8 +94,10 @@ int fib6_rule_action(struct fib_rule *rule, struct flowi *flp, if (rt != &ip6_null_entry) goto out; - dst_release(&rt->u.dst); + rt = NULL; + goto out; + discard_pkt: dst_hold(&rt->u.dst); out: