Re: [PATCH net] net/9p: Fix a potential socket leak in p9_socket_open

From: patchwork-bot+netdevbpf
Date: Mon Nov 28 2022 - 06:10:40 EST


Hello:

This patch was applied to netdev/net.git (master)
by David S. Miller <davem@xxxxxxxxxxxxx>:

On Thu, 24 Nov 2022 16:10:05 +0800 you wrote:
> Both p9_fd_create_tcp() and p9_fd_create_unix() will call
> p9_socket_open(). If the creation of p9_trans_fd fails,
> p9_fd_create_tcp() and p9_fd_create_unix() will return an
> error directly instead of releasing the cscoket, which will
> result in a socket leak.
>
> This patch adds sock_release() to fix the leak issue.
>
> [...]

Here is the summary with links:
- [net] net/9p: Fix a potential socket leak in p9_socket_open
https://git.kernel.org/netdev/net/c/dcc14cfd7deb

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