mirror of
https://github.com/torvalds/linux.git
synced 2026-09-23 22:14:03 +02:00
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:
parent
789af83e41
commit
dd64afb32c
|
|
@ -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;
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user