diff options
| author | Greg Kroah-Hartman <[email protected]> | 2023-01-06 16:28:28 +0100 |
|---|---|---|
| committer | Greg Kroah-Hartman <[email protected]> | 2023-01-17 17:23:31 +0100 |
| commit | 30374434edab20e25776f8ecb4bc9d1e54309487 (patch) | |
| tree | 80246c4a5d50d6ba9dac386bb25128172899e014 /tools/perf/scripts/python/flamegraph.py | |
| parent | a6d7b7b095c4197c78de71a7876e74b6b4ef8af8 (diff) | |
USB: 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: Alan Stern <[email protected]>
Cc: Jilin Yuan <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Greg Kroah-Hartman <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/flamegraph.py')
0 files changed, 0 insertions, 0 deletions