diff options
| author | Shitalkumar Gandhi <shital.gandhi45@gmail.com> | 2026-05-07 17:20:24 +0300 |
|---|---|---|
| committer | Jakub Kicinski <kuba@kernel.org> | 2026-05-10 20:16:58 +0300 |
| commit | a450063ef86b9967234ca1f896c0d77400c74f11 (patch) | |
| tree | e43290e5f4b474e246fb7cfc096176950ba91fa7 /scripts/stackdelta | |
| parent | 69754da484bdd9a6fc223d939298d656d7e13489 (diff) | |
| download | linux-a450063ef86b9967234ca1f896c0d77400c74f11.tar.xz | |
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 'scripts/stackdelta')
0 files changed, 0 insertions, 0 deletions
