Re: [f2fs-dev] [PATCH] f2fs: fix dentry folio leak in find_in_level
Chao Yu via Linux-f2fs-devel <[email protected]> Sun, 19 Jul 2026 15:17:45 +0800
| Newsgroups | net.sourceforge.lists.linux-f2fs-devel,org.kernel.vger.linux-kernel |
|---|---|
| Message-ID | <[email protected]> |
On 7/13/26 14:36, Guanghui Yang wrote: > 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. > Need fixes and Cc stable lines. > Signed-off-by: Guanghui Yang <[email protected]> Reviewed-by: Chao Yu <[email protected]> Thanks, _______________________________________________ Linux-f2fs-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/linux-f2fs-devel