aboutsummaryrefslogtreecommitdiffstats
path: root/net/ipv6/fib6_rules.c
diff options
context:
space:
mode:
Diffstat (limited to 'net/ipv6/fib6_rules.c')
-rw-r--r--net/ipv6/fib6_rules.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/net/ipv6/fib6_rules.c b/net/ipv6/fib6_rules.c
index bf9bba83b852..22a2fdb09831 100644
--- a/net/ipv6/fib6_rules.c
+++ b/net/ipv6/fib6_rules.c
@@ -63,7 +63,11 @@ struct dst_entry *fib6_rule_lookup(struct flowi *fl, int flags,
63 if (arg.rule) 63 if (arg.rule)
64 fib_rule_put(arg.rule); 64 fib_rule_put(arg.rule);
65 65
66 return (struct dst_entry *) arg.result; 66 if (arg.result)
67 return (struct dst_entry *) arg.result;
68
69 dst_hold(&ip6_null_entry.u.dst);
70 return &ip6_null_entry.u.dst;
67} 71}
68 72
69static int fib6_rule_action(struct fib_rule *rule, struct flowi *flp, 73static int fib6_rule_action(struct fib_rule *rule, struct flowi *flp,