Re: [PATCH net] rxrpc: Fix potential data race in rxrpc_wait_to_be_connected()

From: patchwork-bot+netdevbpf
Date: Thu Apr 27 2023 - 04:10:26 EST


Hello:

This patch was applied to netdev/net.git (main)
by Paolo Abeni <pabeni@xxxxxxxxxx>:

On Tue, 25 Apr 2023 13:56:35 +0100 you wrote:
> Inside the loop in rxrpc_wait_to_be_connected() it checks call->error to
> see if it should exit the loop without first checking the call state. This
> is probably safe as if call->error is set, the call is dead anyway, but we
> should probably wait for the call state to have been set to completion
> first, lest it cause surprise on the way out.
>
> Fix this by only accessing call->error if the call is complete. We don't
> actually need to access the error inside the loop as we'll do that after.
>
> [...]

Here is the summary with links:
- [net] rxrpc: Fix potential data race in rxrpc_wait_to_be_connected()
https://git.kernel.org/netdev/net/c/2b5fdc0f5caa

You are awesome, thank you!
--
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html