mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH v2 net 0/4] net: ti: icssg: Fix device_node handling in prueth_probe()
@ 2026-11-10  6:41 Xiangwu Lai
  2026-11-10  6:41 ` [PATCH v2 net 1/4] net: ti: icssg-prueth: Fix device_node refcount leak " Xiangwu Lai
                   ` (4 more replies)
  0 siblings, 5 replies; 7+ messages in thread
From: Xiangwu Lai @ 2026-11-10  6:41 UTC (permalink / raw)
  To: netdev
  Cc: andrew+netdev, davem, edumazet, kuba, pabeni, danishanwar,
	rogerq, jan.kiszka, diogo.ivo, haokexin, horms, linux-arm-kernel,
	linux-kernel, Xiangwu Lai

Hello,

This series fixes the device_node handling in prueth_probe() of both
ICSSG drivers.

Patches 1 and 2, carried over from v1 unchanged, fix a device_node
refcount leak on the "ti,mii-g-rt" and "ti,mii-rt" syscon lookup
failure paths. Patches 3 and 4 fix the port scan loop that is shared
by both drivers: a port whose reg property cannot be read is skipped
instead of being routed based on the uninitialized value, the node
reference is taken only for a port that is actually accepted so an
out-of-range reg value no longer leaks it, duplicate reg values are
rejected, which is what the existing "port0 and port1 can't have
same reg" check intended but never caught, and that unreachable
check is dropped.

Thanks to Simon Horman for the review of v1 [1][2] and for suggesting
to collect the fixes into one series.

Changes in v2:

- Collect the two independent fixes into one series (suggested by
  Simon Horman).

- Add the port scan fixes for both drivers.

[1] https://lore.kernel.org/netdev/20261109165235.GR18859@horms.kernel.org/
[2] https://lore.kernel.org/netdev/20261109170036.GT18859@horms.kernel.org/

Xiangwu Lai (4):
  net: ti: icssg-prueth: Fix device_node refcount leak in prueth_probe()
  net: ti: icssg-prueth-sr1: Fix device_node refcount leak in
    prueth_probe()
  net: ti: icssg-prueth: Fix port scan issues in prueth_probe()
  net: ti: icssg-prueth-sr1: Fix port scan issues in prueth_probe()

 drivers/net/ethernet/ti/icssg/icssg_prueth.c  | 32 +++++++++++--------
 .../net/ethernet/ti/icssg/icssg_prueth_sr1.c  | 32 +++++++++++--------
 2 files changed, 38 insertions(+), 26 deletions(-)

-- 
2.50.1.windows.1




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

end of thread, other threads:[~2026-11-10  7:31 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-11-10  6:41 [PATCH v2 net 0/4] net: ti: icssg: Fix device_node handling in prueth_probe() Xiangwu Lai
2026-11-10  6:41 ` [PATCH v2 net 1/4] net: ti: icssg-prueth: Fix device_node refcount leak " Xiangwu Lai
2026-11-10  6:41 ` [PATCH v2 net 2/4] net: ti: icssg-prueth-sr1: " Xiangwu Lai
2026-11-10  6:41 ` [PATCH v2 net 3/4] net: ti: icssg-prueth: Fix port scan issues " Xiangwu Lai
2026-11-10  6:41 ` [PATCH v2 net 4/4] net: ti: icssg-prueth-sr1: " Xiangwu Lai
2026-11-10  6:46 ` [PATCH v2 net 0/4] net: ti: icssg: Fix device_node handling " netdev-bot+sinfo
2026-11-10  7:31   ` Xiangwu Lai

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

all inboxes | Powered by JetHome®