Thread (2 messages) flat view 2 messages, 2 authors, 2023-02-15

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

From: Michael Ellerman <hidden>
Date: 2023-02-15 12:43:21
Also in: lkml

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
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help