mirror of
https://github.com/torvalds/linux.git
synced 2026-09-19 09:08:02 +02: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:
|
||
|---|---|---|
| .. | ||
| xgene | ||
| xgene-v2 | ||
| Kconfig | ||
| Makefile | ||