Thread (2 messages) 2 messages, 2 authors, 2023-06-30

Re: [PATCH RESEND,net,v2] mlxsw: minimal: fix potential memory leak in mlxsw_m_linecards_init

From: patchwork-bot+netdevbpf@kernel.org
Date: 2023-06-30 02:20:21

Hello:

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

On Fri, 30 Jun 2023 09:26:47 +0800 you wrote:
The line cards array is not freed in the error path of
mlxsw_m_linecards_init(), which can lead to a memory leak. Fix by
freeing the array in the error path, thereby making the error path
identical to mlxsw_m_linecards_fini().

Fixes: 01328e23a476 ("mlxsw: minimal: Extend module to port mapping with slot index")
Signed-off-by: Zhengchao Shao <redacted>
Reviewed-by: Petr Machata <petrm@nvidia.com>
Reviewed-by: Ido Schimmel <idosch@nvidia.com>

[...]
Here is the summary with links:
  - [RESEND,net,v2] mlxsw: minimal: fix potential memory leak in mlxsw_m_linecards_init
    https://git.kernel.org/netdev/net/c/08fc75735fda

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