[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-Id: <163906620966.18129.17437066396344562752.git-patchwork-notify@kernel.org>
Date: Thu, 09 Dec 2021 16:10:09 +0000
From: patchwork-bot+netdevbpf@...nel.org
To: Jianglei Nie <niejianglei2021@....com>
Cc: simon.horman@...igine.com, kuba@...nel.org, davem@...emloft.net,
libaokun1@...wei.com, oss-drivers@...igine.com,
netdev@...r.kernel.org, linux-kernel@...r.kernel.org
Subject: Re: [PATCH] nfp: Fix memory leak in nfp_cpp_area_cache_add()
Hello:
This patch was applied to netdev/net.git (master)
by Jakub Kicinski <kuba@...nel.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
Powered by blists - more mailing lists