aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python
diff options
context:
space:
mode:
authorGreg Kroah-Hartman <[email protected]>2023-02-02 16:32:34 +0100
committerGreg Kroah-Hartman <[email protected]>2023-02-06 13:46:42 +0100
commit7a6952fa0366d4408eb8695af1a0578c39ec718a (patch)
tree0a0c9576a3e37f30f3867b6db091da8e6a9567c9 /tools/perf/scripts/python
parent7a038a681b7df78362d9fc7013e5395a694a9d3a (diff)
USB: gadget: pxa27x_udc: 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: Daniel Mack <[email protected]> Cc: Haojian Zhuang <[email protected]> Cc: Robert Jarzmik <[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')
0 files changed, 0 insertions, 0 deletions