mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/
synced 2026-11-08 18:57:22 +00:00
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:
|
History
|
|
|---|---|---|
| .. | ||
| xgene | ||
| xgene-v2 | ||
| Kconfig | ||
| Makefile | ||