Linux-ARM-Kernel Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH net-next 0/2] net: ixp4xx: fix OF node leaks
@ 2026-11-10  7:08 zhaofeng2
  2026-11-10  7:08 ` [PATCH net-next 1/2] net: ethernet: ixp4xx: fix OF node leaks in ixp4xx_of_get_platdata() zhaofeng2
                   ` (3 more replies)
  0 siblings, 4 replies; 5+ messages in thread
From: zhaofeng2 @ 2026-11-10  7:08 UTC (permalink / raw)
  To: netdev
  Cc: Zhao Feng, David S. Miller, Eric Dumazet, Jakub Kicinski,
	Paolo Abeni, Linus Walleij, Imre Kaloz, linux-arm-kernel

From: Zhao Feng <zhaofeng2@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/




^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2026-11-12 17:41 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-11-10  7:08 [PATCH net-next 0/2] net: ixp4xx: fix OF node leaks zhaofeng2
2026-11-10  7:08 ` [PATCH net-next 1/2] net: ethernet: ixp4xx: fix OF node leaks in ixp4xx_of_get_platdata() zhaofeng2
2026-11-10  7:08 ` [PATCH net-next 2/2] net: ixp4xx_hss: fix OF node leaks in ixp4xx_hss_probe() zhaofeng2
2026-11-10  7:12 ` [PATCH net-next 0/2] net: ixp4xx: fix OF node leaks netdev-bot+sinfo
2026-11-12 17:40 ` patchwork-bot+netdevbpf

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox