diff --git a/include/net/tcp.h b/include/net/tcp.h index 970f4a70e03cfc614169633aa3b86ad9468a5227..d633f98b40f90f424908bd38b6a845cb6594628e 100644 --- a/include/net/tcp.h +++ b/include/net/tcp.h @@ -1878,7 +1878,7 @@ void __tcp_v4_send_check(struct sk_buff *skb, __be32 saddr, __be32 daddr); static inline u32 tcp_notsent_lowat(const struct tcp_sock *tp) { struct net *net = sock_net((struct sock *)tp); - return tp->notsent_lowat ?: net->ipv4.sysctl_tcp_notsent_lowat; + return tp->notsent_lowat ?: READ_ONCE(net->ipv4.sysctl_tcp_notsent_lowat); } static inline bool tcp_stream_memory_free(const struct sock *sk)