[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <166238401431.22589.16841027268928953217.git-patchwork-notify@kernel.org>
Date: Mon, 05 Sep 2022 13:20:14 +0000
From: patchwork-bot+netdevbpf@...nel.org
To: Greg Kroah-Hartman <gregkh@...uxfoundation.org>
Cc: mw@...ihalf.com, linux@...linux.org.uk,
linux-kernel@...r.kernel.org, davem@...emloft.net,
edumazet@...gle.com, kuba@...nel.org, pabeni@...hat.com,
netdev@...r.kernel.org, stable@...nel.org
Subject: Re: [PATCH net] net: mvpp2: debugfs: fix memory leak when using
debugfs_lookup()
Hello:
This patch was applied to netdev/net.git (master)
by David S. Miller <davem@...emloft.net>:
On Fri, 2 Sep 2022 15:41:11 +0200 you wrote:
> When calling debugfs_lookup() the result must have dput() called on it,
> otherwise the memory will leak over time. Fix this up to be much
> simpler logic and only create the root debugfs directory once when the
> driver is first accessed. That resolves the memory leak and makes
> things more obvious as to what the intent is.
>
> Cc: Marcin Wojtas <mw@...ihalf.com>
> Cc: Russell King <linux@...linux.org.uk>
> Cc: "David S. Miller" <davem@...emloft.net>
> Cc: Eric Dumazet <edumazet@...gle.com>
> Cc: Jakub Kicinski <kuba@...nel.org>
> Cc: Paolo Abeni <pabeni@...hat.com>
> Cc: netdev@...r.kernel.org
> Cc: stable <stable@...nel.org>
> Fixes: 21da57a23125 ("net: mvpp2: add a debugfs interface for the Header Parser")
> Signed-off-by: Greg Kroah-Hartman <gregkh@...uxfoundation.org>
>
> [...]
Here is the summary with links:
- [net] net: mvpp2: debugfs: fix memory leak when using debugfs_lookup()
https://git.kernel.org/netdev/net/c/fe2c9c61f668
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