diff options
| author | Ruoyu Wang <ruoyuw560@gmail.com> | 2026-06-18 02:22:27 +0800 |
|---|---|---|
| committer | Konstantin Komarov <almaz.alexandrovich@paragon-software.com> | 2026-07-24 12:45:02 +0200 |
| commit | dd64afb32c4d8d3c934ae84df59a2e463d6fa43c (patch) | |
| tree | 34ed95b49fa41097745a9e9ae81ecb7f612f4e41 | |
| parent | 789af83e41aef54c1ff1cee16adc27822e0a0d71 (diff) | |
| download | linux-next-dd64afb32c4d8d3c934ae84df59a2e463d6fa43c.tar.gz linux-next-dd64afb32c4d8d3c934ae84df59a2e463d6fa43c.zip | |
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>
| -rw-r--r-- | fs/ntfs3/attrib.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/ntfs3/attrib.c b/fs/ntfs3/attrib.c index c621a4c582f9..3628a737d7cc 100644 --- a/fs/ntfs3/attrib.c +++ b/fs/ntfs3/attrib.c @@ -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; |
