Re: [PATCH] net: dsa: Fix possible memory leaks in dsa_loop_init()

From: patchwork-bot+netdevbpf
Date: Fri Oct 28 2022 - 05:40:23 EST


Hello:

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

On Wed, 26 Oct 2022 10:03:21 +0800 you wrote:
> kmemleak reported memory leaks in dsa_loop_init():
>
> kmemleak: 12 new suspected memory leaks
>
> unreferenced object 0xffff8880138ce000 (size 2048):
> comm "modprobe", pid 390, jiffies 4295040478 (age 238.976s)
> backtrace:
> [<000000006a94f1d5>] kmalloc_trace+0x26/0x60
> [<00000000a9c44622>] phy_device_create+0x5d/0x970
> [<00000000d0ee2afc>] get_phy_device+0xf3/0x2b0
> [<00000000dca0c71f>] __fixed_phy_register.part.0+0x92/0x4e0
> [<000000008a834798>] fixed_phy_register+0x84/0xb0
> [<0000000055223fcb>] dsa_loop_init+0xa9/0x116 [dsa_loop]
> ...
>
> [...]

Here is the summary with links:
- net: dsa: Fix possible memory leaks in dsa_loop_init()
https://git.kernel.org/netdev/net/c/633efc8b3dc9

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