Re: [PATCH] net: dsa: microchip: drop the parent MDIO bus reference

From: Jakub Kicinski

Date: Thu Nov 05 2026 - 17:29:58 EST


On Tue, 3 Nov 2026 10:05:31 +0000 Wentao Liang wrote:
> ksz_mdio_register() obtains the parent MDIO bus with of_mdio_find_bus(),
> which takes a reference on the embedded struct device, and stores it in
> dev->parent_mdio_bus for the side MDIO accessors. Nothing ever drops
> that reference, so it is leaked on the probe error paths and when the
> switch device is torn down.

Hi, since you're spamming the community with low-value fixes
we would like to ask you to not post any further networking
patches for the rest of this calendar year.
--
pv-ban: 2mo