[PATCH net] stmmac: dwmac-mediatek: fix resource leak in probe
patchwork-bot+netdevbpf at kernel.org
patchwork-bot+netdevbpf at kernel.org
Thu Jul 28 11:10:13 PDT 2022
Hello:
This patch was applied to netdev/net.git (master)
by Jakub Kicinski <kuba at kernel.org>:
On Thu, 28 Jul 2022 14:52:09 +0300 you wrote:
> If mediatek_dwmac_clks_config() fails, then call stmmac_remove_config_dt()
> before returning. Otherwise it is a resource leak.
>
> Fixes: fa4b3ca60e80 ("stmmac: dwmac-mediatek: fix clock issue")
> Signed-off-by: Dan Carpenter <dan.carpenter at oracle.com>
> ---
> drivers/net/ethernet/stmicro/stmmac/dwmac-mediatek.c | 9 +++++----
> 1 file changed, 5 insertions(+), 4 deletions(-)
Here is the summary with links:
- [net] stmmac: dwmac-mediatek: fix resource leak in probe
https://git.kernel.org/netdev/net/c/4d3d3a1b244f
You are awesome, thank you!
--
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html
More information about the Linux-mediatek
mailing list