X-Git-Url: http://git.samba.org/samba.git/?a=blobdiff_plain;f=net%2Fipv6%2Froute.c;h=69252eb462b2d2f2612edd3d84e34ce1686a24ca;hb=816cd1688331e0ffa1927889c15e7ed56650a183;hp=70cd50c1fa6fee05d03bbb23fd0ce7fa4302371f;hpb=b126047f43f11f61f1dd64802979765d71795dae;p=sfrench%2Fcifs-2.6.git diff --git a/net/ipv6/route.c b/net/ipv6/route.c index 70cd50c1fa6f..69252eb462b2 100644 --- a/net/ipv6/route.c +++ b/net/ipv6/route.c @@ -5741,7 +5741,7 @@ static int rt6_fill_node(struct net *net, struct sk_buff *skb, if (nexthop_is_blackhole(rt->nh)) rtm->rtm_type = RTN_BLACKHOLE; - if (net->ipv4.sysctl_nexthop_compat_mode && + if (READ_ONCE(net->ipv4.sysctl_nexthop_compat_mode) && rt6_fill_node_nexthop(skb, rt->nh, &nh_flags) < 0) goto nla_put_failure;