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

From
patchwork-bot+netdevbpf@kernel.org
Date
2025-10-28 01:00:34
Also in
lkml
Reply to
Abdun Nihaal, 2025-10-23
Hello:

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

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

Thread (6 messages) 6 messages, 4 authors, last reply 2025-10-28
Keyboard shortcuts
hback out one level
jnext message in thread / next series-diff position
kprevious message in thread / previous series-diff position
ldrill in
Escclose help / fold thread tree
?toggle this help