diff options
author | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2023-02-02 16:15:15 +0100 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2023-03-10 09:33:53 +0100 |
commit | 5100c4efc30636aa48ac517dece3c3b7f84fe367 (patch) | |
tree | dbe7f457c1e46ab732fcf7baf644372ba8eebadf /kernel/seccomp.c | |
parent | cde67cb7d2d1757baa83271c1f0892727e79f52e (diff) | |
download | linux-stable-5100c4efc30636aa48ac517dece3c3b7f84fe367.tar.gz linux-stable-5100c4efc30636aa48ac517dece3c3b7f84fe367.tar.bz2 linux-stable-5100c4efc30636aa48ac517dece3c3b7f84fe367.zip |
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>
Diffstat (limited to 'kernel/seccomp.c')
0 files changed, 0 insertions, 0 deletions