diff options
author | Greg Kroah-Hartman <[email protected]> | 2022-09-02 19:11:49 +0000 |
---|---|---|
committer | Andrew Morton <[email protected]> | 2022-09-11 16:22:31 -0700 |
commit | 1552fd3ef7dbe07208b8ae84a0a6566adf7dfc9d (patch) | |
tree | 98fa62d21c52066b8b522616b91a83341c102e34 /lib/mpi/mpi-sub-ui.c | |
parent | fd35ca3d12cc9922d7d9a35f934e72132dbc4853 (diff) |
mm/damon/dbgfs: fix memory leak when using debugfs_lookup()
When calling debugfs_lookup() the result must have dput() called on it,
otherwise the memory will leak over time. Fix this up by properly calling
dput().
Link: https://lkml.kernel.org/r/[email protected]
Fixes: 75c1c2b53c78b ("mm/damon/dbgfs: support multiple contexts")
Signed-off-by: Greg Kroah-Hartman <[email protected]>
Signed-off-by: SeongJae Park <[email protected]>
Cc: <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Diffstat (limited to 'lib/mpi/mpi-sub-ui.c')
0 files changed, 0 insertions, 0 deletions