diff options
-rw-r--r-- | include/net/ip6_fib.h | 4 | ||||
-rw-r--r-- | net/ipv6/route.c | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/include/net/ip6_fib.h b/include/net/ip6_fib.h index f9cde44f93b4..7be4f4e3a0f2 100644 --- a/include/net/ip6_fib.h +++ b/include/net/ip6_fib.h | |||
@@ -50,9 +50,9 @@ struct fib6_node | |||
50 | struct fib6_node *parent; | 50 | struct fib6_node *parent; |
51 | struct fib6_node *left; | 51 | struct fib6_node *left; |
52 | struct fib6_node *right; | 52 | struct fib6_node *right; |
53 | 53 | #ifdef CONFIG_IPV6_SUBTREES | |
54 | struct fib6_node *subtree; | 54 | struct fib6_node *subtree; |
55 | 55 | #endif | |
56 | struct rt6_info *leaf; | 56 | struct rt6_info *leaf; |
57 | 57 | ||
58 | __u16 fn_bit; /* bit key */ | 58 | __u16 fn_bit; /* bit key */ |
diff --git a/net/ipv6/route.c b/net/ipv6/route.c index 9f80518aacbd..8c3d56871b50 100644 --- a/net/ipv6/route.c +++ b/net/ipv6/route.c | |||
@@ -494,7 +494,7 @@ do { \ | |||
494 | goto out; \ | 494 | goto out; \ |
495 | pn = fn->parent; \ | 495 | pn = fn->parent; \ |
496 | if (FIB6_SUBTREE(pn) && FIB6_SUBTREE(pn) != fn) \ | 496 | if (FIB6_SUBTREE(pn) && FIB6_SUBTREE(pn) != fn) \ |
497 | fn = fib6_lookup(pn->subtree, NULL, saddr); \ | 497 | fn = fib6_lookup(FIB6_SUBTREE(pn), NULL, saddr); \ |
498 | else \ | 498 | else \ |
499 | fn = pn; \ | 499 | fn = pn; \ |
500 | if (fn->fn_flags & RTN_RTINFO) \ | 500 | if (fn->fn_flags & RTN_RTINFO) \ |