Unverified Commit 67f42125 authored by openeuler-ci-bot's avatar openeuler-ci-bot Committed by Gitee
Browse files

!9327 af_unix: Fix data races in unix_release_sock/unix_stream_sendmsg

parents 5a3aeaf3 39e1c74e
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -2028,7 +2028,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) {