diff options
| author | 2026-05-07 19:50:24 +0530 | |
|---|---|---|
| committer | 2026-05-10 10:16:58 -0700 | |
| commit | a450063ef86b9967234ca1f896c0d77400c74f11 (patch) | |
| tree | e43290e5f4b474e246fb7cfc096176950ba91fa7 /include/linux/soc/apple/git:/git.zx2c4.com/ssh:/git@git.zx2c4.com | |
| parent | Merge tag 'batadv-net-pullrequest-20260508' of https://git.open-mesh.org/batadv (diff) | |
net: xgene: fix mdio_np leak in xgene_mdiobus_register()
The for_each_child_of_node() loop captures mdio_np via break,
holding the refcount. of_mdiobus_register() does not consume the
reference, so it leaks on success.
Put it after registration.
Fixes: e6ad767305eb ("drivers: net: Add APM X-Gene SoC ethernet driver support.")
Signed-off-by: Shitalkumar Gandhi <shitalkumar.gandhi@cambiumnetworks.com>
Link: https://patch.msgid.link/20260507142024.811543-1-shitalkumar.gandhi@cambiumnetworks.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'include/linux/soc/apple/git:/git.zx2c4.com/ssh:/git@git.zx2c4.com')
0 files changed, 0 insertions, 0 deletions
