diff options
Diffstat (limited to 'net/ipv4/raw.c')
| -rw-r--r-- | net/ipv4/raw.c | 4 | 
1 files changed, 3 insertions, 1 deletions
| diff --git a/net/ipv4/raw.c b/net/ipv4/raw.c index 125c1eab3eaa..5e570aa9e43b 100644 --- a/net/ipv4/raw.c +++ b/net/ipv4/raw.c @@ -520,9 +520,11 @@ static int raw_sendmsg(struct sock *sk, struct msghdr *msg, size_t len)  		goto out;  	/* hdrincl should be READ_ONCE(inet->hdrincl) -	 * but READ_ONCE() doesn't work with bit fields +	 * but READ_ONCE() doesn't work with bit fields. +	 * Doing this indirectly yields the same result.  	 */  	hdrincl = inet->hdrincl; +	hdrincl = READ_ONCE(hdrincl);  	/*  	 *	Check the flags.  	 */ |