diff --git a/net/ipv6/route.c b/net/ipv6/route.c index ad0aa6b0b86a..7f1332fc4346 100644 --- a/net/ipv6/route.c +++ b/net/ipv6/route.c @@ -547,6 +547,8 @@ static inline bool rt6_check_neigh(struct rt6_info *rt) ret = true; #endif read_unlock(&neigh->lock); + } else if (IS_ENABLED(CONFIG_IPV6_ROUTER_PREF)) { + ret = true; } rcu_read_unlock_bh();