[PATCH net-next 0/2] net: ixp4xx: fix OF node leaks
zhaofeng2
zhaofeng2 at cmss.chinamobile.com
Mon Nov 9 23:08:00 PST 2026
From: Zhao Feng <zhaofeng2 at cmss.chinamobile.com>
ixp4xx_eth and ixp4xx_hss resolve their NPE and queue phandles with
of_parse_phandle_with_fixed_args(), which takes a reference on the
resolved device node. Neither driver ever drops that reference, so
the NPE and queue manager device nodes are leaked on every probe
(and on every -EPROBE_DEFER retry in the ixp4xx_eth case, as the MDIO
check happens after the DT parsing).
This addresses part of the "bunch of pre-existing bugs in the area"
noted when a related probe deferral patch was set aside earlier [1].
[1] https://lore.kernel.org/netdev/20260831170858.7e23643e@kernel.org/
More information about the linux-arm-kernel
mailing list