Re: [PATCH] rocker: Fix memory leak in ofdpa_port_fdb()

From: patchwork-bot+netdevbpf

Date: Mon Jun 22 2026 - 20:10:29 EST


Hello:

This patch was applied to netdev/net.git (main)
by Jakub Kicinski <kuba@xxxxxxxxxx>:

On Tue, 16 Jun 2026 09:32:45 +0800 you wrote:
> In ofdpa_port_fdb(), the hash_del() only unlinks the node from
> hash table, but does not free it.
>
> Fix this by adding kfree(found) after the !found == removing check,
> where the pointer value is no longer needed.
>
> Found by Coccinelle kfree script.
>
> [...]

Here is the summary with links:
- rocker: Fix memory leak in ofdpa_port_fdb()
https://git.kernel.org/netdev/net/c/53442aad1d57

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