diff options
| author | Guanghui Yang <3497809730@qq.com> | 2026-07-19 16:45:14 +0800 |
|---|---|---|
| committer | Jaegeuk Kim <jaegeuk@kernel.org> | 2026-07-28 01:18:32 +0000 |
| commit | cca7d3e30bf30333314e31bc70b9a739f1342167 (patch) | |
| tree | 89e7f56c5f340972e55f46e536027b6f2731e1c5 /tools/perf/scripts/python/stackcollapse.py | |
| parent | 0dab71381f1b4d12dc2056f8bd5aaa9d93ce9082 (diff) | |
f2fs: fix dentry folio leak in find_in_level
find_in_level() gets a dentry folio with f2fs_find_data_folio() before
calling find_in_block(). If find_in_block() returns an error, the
function stores the error in res_folio and breaks out of the loop without
dropping the dentry folio.
This leaks the folio reference on the find_in_block() error path. Drop
the dentry folio before returning the error to the caller.
Fixes: 7ad08a58bf67 ("f2fs: Handle casefolding with Encryption")
Cc: stable@vger.kernel.org
Reviewed-by: Chao Yu <chao@kernel.org>
Signed-off-by: Guanghui Yang <3497809730@qq.com>
Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
Diffstat (limited to 'tools/perf/scripts/python/stackcollapse.py')
0 files changed, 0 insertions, 0 deletions
