diff --git a/include/net/ip.h b/include/net/ip.h index b97886996d798b42980fbab3588320dda4ca0541..ef6e8e5b4fce13aa3b131c18a594779d4c3eede7 100644 --- a/include/net/ip.h +++ b/include/net/ip.h @@ -382,7 +382,7 @@ void ipfrag_init(void); void ip_static_sysctl_init(void); #define IP4_REPLY_MARK(net, mark) \ - ((net)->ipv4.sysctl_fwmark_reflect ? (mark) : 0) + (READ_ONCE((net)->ipv4.sysctl_fwmark_reflect) ? (mark) : 0) static inline bool ip_is_fragment(const struct iphdr *iph) {