Messages in this thread | ![/](/images/icornerl.gif) | | Subject | Re: [PATCH] nfp: Fix memory leak in nfp_cpp_area_cache_add() | From | patchwork-bot+netdevbpf@kernel ... | Date | Thu, 09 Dec 2021 16:10:09 +0000 |
| |
Hello:
This patch was applied to netdev/net.git (master) by Jakub Kicinski <kuba@kernel.org>:
On Thu, 9 Dec 2021 14:15:11 +0800 you wrote: > In line 800 (#1), nfp_cpp_area_alloc() allocates and initializes a > CPP area structure. But in line 807 (#2), when the cache is allocated > failed, this CPP area structure is not freed, which will result in > memory leak. > > We can fix it by freeing the CPP area when the cache is allocated > failed (#2). > > [...]
Here is the summary with links: - nfp: Fix memory leak in nfp_cpp_area_cache_add() https://git.kernel.org/netdev/net/c/c56c96303e92
You are awesome, thank you! -- Deet-doot-dot, I am a bot. https://korg.docs.kernel.org/patchwork/pwbot.html
| ![\](/images/icornerr.gif) |