linux/fs/ntfs
Nathan Chancellor 9e9354075d ntfs: Use return instead of goto in ntfs_mapping_pairs_decompress()
Clang warns (or errors with CONFIG_WERROR=y / W=e):

  fs/ntfs/runlist.c:755:6: error: variable 'rl' is used uninitialized whenever 'if' condition is true [-Werror,-Wsometimes-uninitialized]
    755 |         if (overflows_type(lowest_vcn, vcn)) {
        |             ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  ...
  fs/ntfs/runlist.c:971:9: note: uninitialized use occurs here
    971 |         kvfree(rl);
        |                ^~
  ...

rl has not been allocated at this point so the 'goto err_out' should
really just be a return of the error pointer -EIO.

Signed-off-by: Nathan Chancellor <nathan@kernel.org>
Reviewed-by: Hyunchul Lee <hyc.lee@gmail.com>
Signed-off-by: Namjae Jeon <linkinjeon@kernel.org>
2026-04-30 07:05:48 +09:00
..
aops.c ntfs: remove noop_direct_IO from address_space_operations 2026-04-18 11:33:03 +09:00
attrib.c ntfs: fix uninitialized variable in ntfs_map_runlist_nolock 2026-04-18 11:33:19 +09:00
attrib.h ntfs: update in-memory, on-disk structures and headers 2026-02-19 21:48:06 +09:00
attrlist.c ntfs: update attrib operations 2026-02-19 21:50:50 +09:00
attrlist.h ntfs: update in-memory, on-disk structures and headers 2026-02-19 21:48:06 +09:00
bdev-io.c ntfs: update misc operations 2026-02-19 21:50:56 +09:00
bitmap.c ntfs: fix invalid PTR_ERR() usage in __ntfs_bitmap_set_bits_in_run() 2026-04-28 21:59:59 +09:00
bitmap.h ntfs: update in-memory, on-disk structures and headers 2026-02-19 21:48:06 +09:00
collate.c ntfs: update misc operations 2026-02-19 21:50:56 +09:00
collate.h ntfs: update in-memory, on-disk structures and headers 2026-02-19 21:48:06 +09:00
compress.c ntfs: fix potential 32-bit truncation in ntfs_write_cb() 2026-04-18 11:33:21 +09:00
debug.c ntfs: update misc operations 2026-02-19 21:50:56 +09:00
debug.h ntfs: update in-memory, on-disk structures and headers 2026-02-19 21:48:06 +09:00
dir.c ntfs: fix NULL dereference in ntfs_index_walk_down() 2026-04-27 22:29:04 +09:00
dir.h ntfs: update in-memory, on-disk structures and headers 2026-02-19 21:48:06 +09:00
ea.c ntfs: fix uninitialized variables in ntfs_ea_set_wsl_inode() 2026-04-18 11:33:09 +09:00
ea.h ntfs: update in-memory, on-disk structures and headers 2026-02-19 21:48:06 +09:00
file.c ntfs: fix mmap_prepare writable check for shared mappings 2026-04-22 18:33:15 +09:00
index.c ntfs: fix NULL dereference in ntfs_index_walk_down() 2026-04-27 22:29:04 +09:00
index.h ntfs: update in-memory, on-disk structures and headers 2026-02-19 21:48:06 +09:00
inode.c ntfs: remove redundant out-of-bound checks 2026-04-07 18:36:13 +09:00
inode.h ntfs: change mft_no type to u64 2026-03-06 22:08:39 +09:00
iomap.c ntfs: fix error handling in ntfs_write_iomap_end_resident() 2026-04-27 22:58:52 +09:00
iomap.h ntfs: update in-memory, on-disk structures and headers 2026-02-19 21:48:06 +09:00
Kconfig ntfs: select FS_IOMAP in Kconfig 2026-03-05 17:37:02 +09:00
layout.h ntfs: update in-memory, on-disk structures and headers 2026-02-19 21:48:06 +09:00
lcnalloc.c ntfs: fix variable dereferenced before check warnings 2026-03-16 20:27:45 +09:00
lcnalloc.h ntfs: update in-memory, on-disk structures and headers 2026-02-19 21:48:06 +09:00
logfile.c ntfs: update misc operations 2026-02-19 21:50:56 +09:00
logfile.h ntfs: update in-memory, on-disk structures and headers 2026-02-19 21:48:06 +09:00
Makefile ntfs: add Kconfig and Makefile 2026-02-19 21:51:00 +09:00
malloc.h Revert "fs: Remove NTFS classic" 2026-02-19 21:48:05 +09:00
mft.c ntfs: add missing error code in ntfs_mft_record_alloc() 2026-04-18 11:33:13 +09:00
mft.h ntfs: change mft_no type to u64 2026-03-06 22:08:39 +09:00
mst.c ntfs: update mft operations 2026-02-19 21:48:07 +09:00
namei.c ntfs: drop nlink once for WIN32/DOS aliases 2026-04-30 07:05:46 +09:00
ntfs.h ntfs: update in-memory, on-disk structures and headers 2026-02-19 21:48:06 +09:00
object_id.c ntfs: update misc operations 2026-02-19 21:50:56 +09:00
object_id.h ntfs: update in-memory, on-disk structures and headers 2026-02-19 21:48:06 +09:00
quota.c ntfs: update misc operations 2026-02-19 21:50:56 +09:00
quota.h ntfs: update in-memory, on-disk structures and headers 2026-02-19 21:48:06 +09:00
reparse.c ntfs: fix WSL symlink target leak on reparse failure 2026-04-27 22:29:08 +09:00
reparse.h ntfs: update in-memory, on-disk structures and headers 2026-02-19 21:48:06 +09:00
runlist.c ntfs: Use return instead of goto in ntfs_mapping_pairs_decompress() 2026-04-30 07:05:48 +09:00
runlist.h ntfs: update in-memory, on-disk structures and headers 2026-02-19 21:48:06 +09:00
super.c ntfs: remove redundant out-of-bound checks 2026-04-07 18:36:13 +09:00
sysctl.c ntfs: fix sysctl table registration and path 2026-03-01 14:53:37 +09:00
sysctl.h ntfs: update in-memory, on-disk structures and headers 2026-02-19 21:48:06 +09:00
time.h ntfs: update in-memory, on-disk structures and headers 2026-02-19 21:48:06 +09:00
unistr.c ntfs: update misc operations 2026-02-19 21:50:56 +09:00
upcase.c ntfs: update misc operations 2026-02-19 21:50:56 +09:00
volume.h ntfs: update in-memory, on-disk structures and headers 2026-02-19 21:48:06 +09:00