summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/stackcollapse.py
diff options
context:
space:
mode:
authorNicolai Buchwitz <nb@tipi-net.de>2026-09-07 23:08:56 +0200
committerJakub Kicinski <kuba@kernel.org>2026-09-08 17:52:05 -0700
commit382a373d9ea7a6ac4de9c022385b6217f65ae3cc (patch)
tree3c885159cc84b7ae2ec14d66d7f8321e2fceb2f3 /tools/perf/scripts/python/stackcollapse.py
parent7d059f390750152b9bd69df934198651b94fc26d (diff)
net: macb: put the "mdio" child node reference on success
macb_mii_init() holds the reference returned by of_get_child_by_name() for macb_mdiobus_register() and drops it only on the error paths, so every successful probe leaks a node reference. On a CM5, overlay removal after four bind cycles reports OF: ERROR: memory leak, expected refcount 1 instead of 5 Drop the reference after registration, where __mdiobus_register() has already taken its own for the lifetime of the bus. Fixes: 8a6631f1cece ("net: macb: avoid redundant lookup for "mdio" child node in MDIO setup") Signed-off-by: Nicolai Buchwitz <nb@tipi-net.de> Link: https://patch.msgid.link/20260907210856.1673589-3-nb@tipi-net.de Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'tools/perf/scripts/python/stackcollapse.py')
0 files changed, 0 insertions, 0 deletions