diff --git a/net/ipv6/route.c b/net/ipv6/route.c index 9ff0b78a9c15d8a7703aeb69c0877171dd15394e..bd5fd7054031d677f9ac111ef7d78c74b3d68b24 100644 --- a/net/ipv6/route.c +++ b/net/ipv6/route.c @@ -551,6 +551,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();