Thread (8 messages) flat view 8 messages, 6 authors, 4d ago

Re: [PATCH] net: dsa: vitesse-vsc73xx: Fix SPI device reference leak in vsc73xx_spi_probe()

From: patchwork-bot+netdevbpf@kernel.org
Date: 2026-09-23 01:21:21
Also in: lkml, stable

Hello:

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

On Thu, 17 Sep 2026 10:49:20 +0000 you wrote:
spi_dev_get() takes a reference on the SPI device, but neither the
probe error paths nor vsc73xx_spi_remove() ever release it, so the
spi_device can never be freed after the driver has been unbound.

Release the reference on both probe error paths and in remove().

Fixes: 95711cd5f0b4 ("net: dsa: vsc73xx: Split vsc73xx driver")
Cc: stable@vger.kernel.org
Signed-off-by: Wentao Liang <redacted>

[...]
Here is the summary with links:
  - net: dsa: vitesse-vsc73xx: Fix SPI device reference leak in vsc73xx_spi_probe()
    https://git.kernel.org/netdev/net-next/c/08dfb3106c0d

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