summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/stackcollapse.py
diff options
context:
space:
mode:
authorGreg Kroah-Hartman <gregkh@linuxfoundation.org>2023-02-02 18:12:14 +0300
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2023-02-08 15:35:51 +0300
commit5f5139974c2030e0937d3ae01f17da1238281f11 (patch)
tree046adb8a4deb4e2375338b0770543b075dad3649 /tools/perf/scripts/python/stackcollapse.py
parent862f6a84d1bf01435fdd6aa8b2811c88ab1f06f4 (diff)
downloadlinux-5f5139974c2030e0937d3ae01f17da1238281f11.tar.xz
kernel/time/test_udelay.c: 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. Link: https://lore.kernel.org/r/20230202151214.2306822-1-gregkh@linuxfoundation.org Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'tools/perf/scripts/python/stackcollapse.py')
0 files changed, 0 insertions, 0 deletions