Re: [PATCH net v2] mlxsw: core_linecards: Fix double memory deallocation in case of invalid INI file

From: patchwork-bot+netdevbpf
Date: Thu Jul 04 2024 - 10:42:05 EST


Hello:

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

On Wed, 3 Jul 2024 23:32:51 +0300 you wrote:
> In case of invalid INI file mlxsw_linecard_types_init() deallocates memory
> but doesn't reset pointer to NULL and returns 0. In case of any error
> occurred after mlxsw_linecard_types_init() call, mlxsw_linecards_init()
> calls mlxsw_linecard_types_fini() which performs memory deallocation again.
>
> Add pointer reset to NULL.
>
> [...]

Here is the summary with links:
- [net,v2] mlxsw: core_linecards: Fix double memory deallocation in case of invalid INI file
https://git.kernel.org/netdev/net/c/8ce34dccbe8f

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