X-Git-Url: http://git.agner.ch/gitweb/?a=blobdiff_plain;f=net%2Fipv6%2Ffib6_rules.c;h=3fd0a578329e523828fc56b40b6ffe217fd850dc;hb=96b7fe0119b932ad25451d2b6357e727bbe6a309;hp=e27591635f92c45306a33cb9513628751e93dd16;hpb=13e92b5b1e8380997029d63fc7c85cdf18bdcf2b;p=linux-drm-fsl-dcu.git diff --git a/net/ipv6/fib6_rules.c b/net/ipv6/fib6_rules.c index e27591635f92..3fd0a578329e 100644 --- a/net/ipv6/fib6_rules.c +++ b/net/ipv6/fib6_rules.c @@ -122,7 +122,11 @@ out: static bool fib6_rule_suppress(struct fib_rule *rule, struct fib_lookup_arg *arg) { struct rt6_info *rt = (struct rt6_info *) arg->result; - struct net_device *dev = rt->rt6i_idev->dev; + struct net_device *dev = NULL; + + if (rt->rt6i_idev) + dev = rt->rt6i_idev->dev; + /* do not accept result if the route does * not meet the required prefix length */