Greg Kroah-Hartman e974e8f1e3 PM: EM: fix memory leak with using debugfs_lookup()
[ Upstream commit a0e8c13ccd6a9a636d27353da62c2410c4eca337 ]

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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2023-03-11 16:39:51 +01:00
..
2023-01-14 10:16:24 +01:00
2023-01-04 11:39:23 +01:00
2020-08-12 10:58:02 -07:00
2023-01-14 10:15:20 +01:00
2023-02-01 08:23:22 +01:00
2020-07-27 14:31:12 -04:00