diff options
| author | Greg Kroah-Hartman <[email protected]> | 2023-02-02 14:15:45 +0000 |
|---|---|---|
| committer | Rafael J. Wysocki <[email protected]> | 2023-02-09 19:33:38 +0000 |
| commit | 0b6200e1e9f53dabdc30d0f6c51af9a5f664d32b (patch) | |
| tree | 5fb722f0166b9360c2f04a80e24be763b06bb1dc /drivers/acpi/cppc_acpi.c | |
| parent | Linux 6.2-rc7 (diff) | |
| download | kernel-0b6200e1e9f53dabdc30d0f6c51af9a5f664d32b.tar.gz kernel-0b6200e1e9f53dabdc30d0f6c51af9a5f664d32b.zip | |
PM: domains: 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 <[email protected]>
Reviewed-by: Ulf Hansson <[email protected]>
Signed-off-by: Rafael J. Wysocki <[email protected]>
Diffstat (limited to 'drivers/acpi/cppc_acpi.c')
0 files changed, 0 insertions, 0 deletions
