diff options
author | Greg Kroah-Hartman <[email protected]> | 2023-02-02 16:12:14 +0100 |
---|---|---|
committer | Greg Kroah-Hartman <[email protected]> | 2023-02-08 13:35:51 +0100 |
commit | 5f5139974c2030e0937d3ae01f17da1238281f11 (patch) | |
tree | 046adb8a4deb4e2375338b0770543b075dad3649 /scripts/gdb/linux/tasks.py | |
parent | 862f6a84d1bf01435fdd6aa8b2811c88ab1f06f4 (diff) |
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/[email protected]
Signed-off-by: Greg Kroah-Hartman <[email protected]>
Diffstat (limited to 'scripts/gdb/linux/tasks.py')
0 files changed, 0 insertions, 0 deletions