diff options
author | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2023-02-02 15:15:45 +0100 |
---|---|---|
committer | Rafael J. Wysocki <rafael.j.wysocki@intel.com> | 2023-02-09 20:33:38 +0100 |
commit | 0b6200e1e9f53dabdc30d0f6c51af9a5f664d32b (patch) | |
tree | 5fb722f0166b9360c2f04a80e24be763b06bb1dc /include/linux/fpga/fpga-bridge.h | |
parent | 4ec5183ec48656cec489c49f989c508b68b518e3 (diff) |
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 <gregkh@linuxfoundation.org>
Reviewed-by: Ulf Hansson <ulf.hansson@linaro.org>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Diffstat (limited to 'include/linux/fpga/fpga-bridge.h')
0 files changed, 0 insertions, 0 deletions