Unverified Commit 89d7d78e authored by openeuler-ci-bot's avatar openeuler-ci-bot Committed by Gitee
Browse files

!9329 af_unix: Fix data races in unix_release_sock/unix_stream_sendmsg

parents fd4d9056 493af2bc
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -2199,7 +2199,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) {