Thread (2 messages) 2 messages, 2 authors, 2026-08-24

Re: [PATCH] net: stmmac: fix device node reference leaks in stmmac_mtl_setup()

From: patchwork-bot+netdevbpf@kernel.org
Date: 2026-08-24 18:51:29
Also in: linux-arm-kernel

Hello:

This patch was applied to netdev/net.git (main)
by Jakub Kicinski [off-list ref]:

On Fri, 21 Aug 2026 11:57:18 +0600 you wrote:
In stmmac_mtl_setup(), q_node is shared across the RX and TX queue
parsing loops. When the RX queue loop breaks early because the number
of parsed queues reaches plat->rx_queues_to_use, q_node retains an
acquired reference count. If the error check passes
(queue == plat->rx_queues_to_use), execution proceeds directly to the
TX queue loop, where of_get_next_child() immediately overwrites q_node
with the first TX child, permanently leaking the retained RX child
device node reference.

[...]
Here is the summary with links:
  - net: stmmac: fix device node reference leaks in stmmac_mtl_setup()
    https://git.kernel.org/netdev/net/c/317fe168f4c0

You are awesome, thank you!
-- 
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html

Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help