Thread (4 messages) 4 messages, 2 authors, 2026-01-25

Re: [PATCH net 1/2] can: at91_can: Fix memory leak in at91_can_probe()

From: patchwork-bot+netdevbpf@kernel.org
Date: 2026-01-25 21:20:19
Also in: linux-can

Hello:

This series was applied to netdev/net.git (main)
by Marc Kleine-Budde [off-list ref]:

On Fri, 23 Jan 2026 18:30:06 +0100 you wrote:
From: Zilin Guan <redacted>

In at91_can_probe(), the dev structure is allocated via alloc_candev().
However, if the subsequent call to devm_phy_optional_get() fails, the
code jumps directly to exit_iounmap, missing the call to free_candev().
This results in a memory leak of the allocated net_device structure.

[...]
Here is the summary with links:
  - [net,1/2] can: at91_can: Fix memory leak in at91_can_probe()
    https://git.kernel.org/netdev/net/c/0baa4d3170d7
  - [net,2/2] can: gs_usb: gs_usb_receive_bulk_callback(): fix error message
    https://git.kernel.org/netdev/net/c/494fc029f662

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