diff options
| author | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2023-01-06 16:28:28 +0100 |
|---|---|---|
| committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2023-01-17 17:23:31 +0100 |
| commit | 30374434edab20e25776f8ecb4bc9d1e54309487 (patch) | |
| tree | 80246c4a5d50d6ba9dac386bb25128172899e014 /tools/perf/scripts/python/export-to-sqlite.py | |
| parent | a6d7b7b095c4197c78de71a7876e74b6b4ef8af8 (diff) | |
| download | linux-30374434edab20e25776f8ecb4bc9d1e54309487.tar.gz linux-30374434edab20e25776f8ecb4bc9d1e54309487.zip | |
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 <stern@rowland.harvard.edu>
Cc: Jilin Yuan <yuanjilin@cdjrlc.com>
Link: https://lore.kernel.org/r/20230106152828.3790902-1-gregkh@linuxfoundation.org
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'tools/perf/scripts/python/export-to-sqlite.py')
0 files changed, 0 insertions, 0 deletions
