ntfs3: initialize err in attr_wof_frame_info

attr_wof_frame_info() may reuse a cached offsets folio. In that case the
loop can fill the output offsets without calling attr_load_runs_range()
or ntfs_read_run(), leaving err uninitialized before the common return
path. Initialize err to 0 for the successful cached path.

Signed-off-by: Ruoyu Wang <ruoyuw560@gmail.com>
Signed-off-by: Konstantin Komarov <almaz.alexandrovich@paragon-software.com>
This commit is contained in:
Ruoyu Wang 2026-06-18 02:22:27 +08:00 committed by Konstantin Komarov
parent 789af83e41
commit dd64afb32c
No known key found for this signature in database
GPG Key ID: A9B0331F832407B6

View File

@ -1515,7 +1515,7 @@ int attr_wof_frame_info(struct ntfs_inode *ni, struct ATTRIB *attr,
u8 bytes_per_off;
char *addr;
struct folio *folio;
int i, err;
int i, err = 0;
__le32 *off32;
__le64 *off64;