diff options
Diffstat (limited to 'net/unix/af_unix.c')
| -rw-r--r-- | net/unix/af_unix.c | 2 | 
1 files changed, 1 insertions, 1 deletions
diff --git a/net/unix/af_unix.c b/net/unix/af_unix.c index 9a6ad5974dff..e94839d89b09 100644 --- a/net/unix/af_unix.c +++ b/net/unix/af_unix.c @@ -2270,7 +2270,7 @@ static int unix_stream_sendmsg(struct socket *sock, struct msghdr *msg,  			goto out_err;  	} -	if (sk->sk_shutdown & SEND_SHUTDOWN) +	if (READ_ONCE(sk->sk_shutdown) & SEND_SHUTDOWN)  		goto pipe_err;  	while (sent < len) {  | 
