summaryrefslogtreecommitdiff
path: root/.get_maintainer.ignore
diff options
context:
space:
mode:
authorGreg Kroah-Hartman <gregkh@linuxfoundation.org>2023-02-02 15:20:22 +0100
committerVlastimil Babka <vbabka@suse.cz>2023-02-06 16:35:09 +0100
commitaa4a86055b6fd76c414c3ab2af5a1dbd93dd6c93 (patch)
treec0164a63b8617503d1dd49be76186672bd099e2a /.get_maintainer.ignore
parent88603b6dc419445847923fcb7fe5080067a30f98 (diff)
downloadlwn-aa4a86055b6fd76c414c3ab2af5a1dbd93dd6c93.tar.gz
lwn-aa4a86055b6fd76c414c3ab2af5a1dbd93dd6c93.zip
mm/slub: fix memory leak with using debugfs_lookup()
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. Cc: Christoph Lameter <cl@linux.com> Cc: Pekka Enberg <penberg@kernel.org> Cc: David Rientjes <rientjes@google.com> Cc: Joonsoo Kim <iamjoonsoo.kim@lge.com> Cc: Andrew Morton <akpm@linux-foundation.org> Cc: Vlastimil Babka <vbabka@suse.cz> Cc: Roman Gushchin <roman.gushchin@linux.dev> Cc: Hyeonggon Yoo <42.hyeyoo@gmail.com> Cc: linux-mm@kvack.org Cc: linux-kernel@vger.kernel.org Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org> Reviewed-by: Hyeonggon Yoo <42.hyeyoo@gmail.com> Acked-by: Roman Gushchin <roman.gushchin@linux.dev> Acked-by: David Rientjes <rientjes@google.com> Signed-off-by: Vlastimil Babka <vbabka@suse.cz>
Diffstat (limited to '.get_maintainer.ignore')
0 files changed, 0 insertions, 0 deletions