Re: [PATCH net] arcnet: fix potential memory leak in com20020_probe()

From: patchwork-bot+netdevbpf
Date: Wed Nov 23 2022 - 08:07:47 EST


Hello:

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

On Sun, 20 Nov 2022 14:24:38 +0800 you wrote:
> In com20020_probe(), if com20020_config() fails, dev and info
> will not be freed, which will lead to a memory leak.
>
> This patch adds freeing dev and info after com20020_config()
> fails to fix this bug.
>
> Compile tested only.
>
> [...]

Here is the summary with links:
- [net] arcnet: fix potential memory leak in com20020_probe()
https://git.kernel.org/netdev/net/c/1c40cde6b517

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