[lvc-project] [PATCH net v2] mlxsw: core_linecards: Fix double memory deallocation in case of invalid INI file
patchwork-bot+netdevbpf at kernel.org
patchwork-bot+netdevbpf at kernel.org
Thu Jul 4 17:40:29 MSK 2024
Hello:
This patch was applied to netdev/net.git (main)
by Jakub Kicinski <kuba at kernel.org>:
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
More information about the lvc-project
mailing list