diff options
author | 2023-02-02 16:15:15 +0100 | |
---|---|---|
committer | 2023-02-09 20:36:10 +0100 | |
commit | a0e8c13ccd6a9a636d27353da62c2410c4eca337 (patch) | |
tree | b937065cec7b61f03cc55323bf8aa0d9a0a78a31 /scripts/generate_rust_analyzer.py | |
parent | Linux 6.2-rc7 (diff) | |
download | linux-rng-a0e8c13ccd6a9a636d27353da62c2410c4eca337.tar.xz linux-rng-a0e8c13ccd6a9a636d27353da62c2410c4eca337.zip |
PM: EM: 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.
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Diffstat (limited to 'scripts/generate_rust_analyzer.py')
0 files changed, 0 insertions, 0 deletions