diff --git a/net/ipv6/route.c b/net/ipv6/route.c index 8efb03cc6f242a8123b96eea7a132c1ff83e251a..31c285d0f8c3e457e41c1daef6502ec5b1670b85 100644 --- a/net/ipv6/route.c +++ b/net/ipv6/route.c @@ -655,6 +655,9 @@ static inline bool fib6_ignore_linkdown(const struct fib6_info *f6i) if (dev) { const struct inet6_dev *idev = __in6_dev_get(dev); + if (unlikely(!idev)) + return true; + rc = !!idev->cnf.ignore_routes_with_linkdown; }