Re: [PATCH net v3] tipc: clear sock->sk on the failed-insert path in tipc_sk_create()

From: patchwork-bot+netdevbpf

Date: Thu Jul 23 2026 - 07:05:21 EST


Hello:

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

On Tue, 14 Jul 2026 22:19:39 +0900 you wrote:
> When tipc_sk_create() fails to insert the new socket (tipc_sk_insert()
> returns non-zero), its error path frees the sk with sk_free() but leaves
> sock->sk pointing at the freed object:
>
> if (tipc_sk_insert(tsk)) {
> sk_free(sk);
> pr_warn("Socket create failed; port number exhausted\n");
> return -EINVAL;
> }
>
> [...]

Here is the summary with links:
- [net,v3] tipc: clear sock->sk on the failed-insert path in tipc_sk_create()
https://git.kernel.org/netdev/net/c/ba0533fc163f

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