Searched hist:"1552 fd3e" (Results 1 – 1 of 1) sorted by relevance
/openbmc/linux/mm/damon/ |
H A D | dbgfs.c | 1552fd3e Fri Sep 02 14:11:49 CDT 2022 Greg Kroah-Hartman <gregkh@linuxfoundation.org> 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/20220902191149.112434-1-sj@kernel.org Fixes: 75c1c2b53c78b ("mm/damon/dbgfs: support multiple contexts") Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org> Signed-off-by: SeongJae Park <sj@kernel.org> Cc: <stable@vger.kernel.org> Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
|