aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/exported-sql-viewer.py
diff options
context:
space:
mode:
authorGreg Kroah-Hartman <[email protected]>2023-02-02 16:28:20 +0100
committerGreg Kroah-Hartman <[email protected]>2023-02-06 13:46:41 +0100
commitbe308d68785b205e483b3a0c61ba3a82da468f2c (patch)
tree515dec991dd76fa2b314f458a5fcbb58ebb05606 /tools/perf/scripts/python/exported-sql-viewer.py
parent25746a3fa2dad79a6dfc42522b5bb38b4bdec844 (diff)
USB: dwc3: 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. Note, the root dentry for the debugfs directory for the device needs to be saved so we don't have to keep looking it up, which required a bit more refactoring to properly create and remove it when needed. Reported-by: Bruce Chen <[email protected]> Reported-by: Cixi Geng <[email protected]> Tested-by: Cixi Geng <[email protected]> Acked-by: Thinh Nguyen <[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/exported-sql-viewer.py')
0 files changed, 0 insertions, 0 deletions