aboutsummaryrefslogtreecommitdiff
path: root/lib/string_helpers.c
diff options
context:
space:
mode:
authorGreg Kroah-Hartman <[email protected]>2023-02-02 16:15:15 +0100
committerGreg Kroah-Hartman <[email protected]>2023-02-08 13:36:00 +0100
commita0bc3f78d0fffa8be1a73bf945a43bfe1c2871c1 (patch)
treefb817754e54831facb726d2d0491e00c56d4400a /lib/string_helpers.c
parent5f5139974c2030e0937d3ae01f17da1238281f11 (diff)
kernel/power/energy_model.c: 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: "Rafael J. Wysocki" <[email protected]> Cc: Pavel Machek <[email protected]> Cc: Len Brown <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Greg Kroah-Hartman <[email protected]>
Diffstat (limited to 'lib/string_helpers.c')
0 files changed, 0 insertions, 0 deletions