[PATCH] ppc: iommu: fix memory leak with using debugfs_lookup()

Michael Ellerman patch-notifications at ellerman.id.au
Wed Feb 15 23:40:27 AEDT 2023


On Thu, 2 Feb 2023 15:19:19 +0100, Greg Kroah-Hartman wrote:
> When calling debugfs_lookup() the result must have dput() called on it,
> otherwise the memory will leak over time.  To make things simpler, just
> call debugfs_lookup_and_remove() instead which handles all of the logic
> at once.
> 
> 

Applied to powerpc/next.

[1/1] ppc: iommu: fix memory leak with using debugfs_lookup()
      https://git.kernel.org/powerpc/c/b505063910c134778202dfad9332dfcecb76bab3

cheers


More information about the Linuxppc-dev mailing list