Re: [PATCH v2 net] sfc: fix potential memory leak in efx_mae_process_mport()

From: patchwork-bot+netdevbpf

Date: Mon Oct 27 2025 - 21:00:34 EST


Hello:

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

On Thu, 23 Oct 2025 19:48:42 +0530 you wrote:
> In efx_mae_enumerate_mports(), memory allocated for mae_mport_desc is
> passed as a argument to efx_mae_process_mport(), but when the error path
> in efx_mae_process_mport() gets executed, the memory allocated for desc
> gets leaked.
>
> Fix that by freeing the memory allocation before returning error.
>
> [...]

Here is the summary with links:
- [v2,net] sfc: fix potential memory leak in efx_mae_process_mport()
https://git.kernel.org/netdev/net/c/46a499aaf8c2

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