aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--net/ipv6/route.c2
1 files changed, 2 insertions, 0 deletions
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)
547 ret = true; 547 ret = true;
548#endif 548#endif
549 read_unlock(&neigh->lock); 549 read_unlock(&neigh->lock);
550 } else if (IS_ENABLED(CONFIG_IPV6_ROUTER_PREF)) {
551 ret = true;
550 } 552 }
551 rcu_read_unlock_bh(); 553 rcu_read_unlock_bh();
552 554