Merge git://git.kernel.org/pub/scm/linux/kernel/git/netdev/net
[linux.git] / include / net / route.h
index 651424ef09c9d7428d5420686704cadefba1fc09..f3257000d4e18992cbff17506adbe26dc67e6810 100644 (file)
@@ -369,7 +369,7 @@ static inline int ip4_dst_hoplimit(const struct dst_entry *dst)
        struct net *net = dev_net(dst->dev);
 
        if (hoplimit == 0)
-               hoplimit = net->ipv4.sysctl_ip_default_ttl;
+               hoplimit = READ_ONCE(net->ipv4.sysctl_ip_default_ttl);
        return hoplimit;
 }
 
This page took 0.037002 seconds and 4 git commands to generate.