diff options
-rw-r--r-- | net/ipv6/fib6_rules.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/net/ipv6/fib6_rules.c b/net/ipv6/fib6_rules.c index c3c8195744ee..94a46ec967a4 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, | |||
94 | 94 | ||
95 | if (rt != &ip6_null_entry) | 95 | if (rt != &ip6_null_entry) |
96 | goto out; | 96 | goto out; |
97 | |||
98 | dst_release(&rt->u.dst); | 97 | dst_release(&rt->u.dst); |
98 | rt = NULL; | ||
99 | goto out; | ||
100 | |||
99 | discard_pkt: | 101 | discard_pkt: |
100 | dst_hold(&rt->u.dst); | 102 | dst_hold(&rt->u.dst); |
101 | out: | 103 | out: |