]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
ntfs: fix variable dereferenced before check warnings
authorHyunchul Lee <hyc.lee@gmail.com>
Thu, 12 Mar 2026 23:59:07 +0000 (08:59 +0900)
committerNamjae Jeon <linkinjeon@kernel.org>
Mon, 16 Mar 2026 11:27:45 +0000 (20:27 +0900)
commit4e59f8a1a82beaa49d7796648fc4dc538eff6485
tree9699967476dcd41298ee8f2baa6dc66b61ff83ea
parent7cf4b3c768fda4076af25d5c4bb4a6267e32d42d
ntfs: fix variable dereferenced before check warnings

Detected by Smatch.

lcnalloc.c:736 ntfs_cluster_alloc() error:
  we previously assumed 'rl' could be null (see line 719)

inode.c:3275 ntfs_inode_close() warn:
  variable dereferenced before check 'tmp_nis' (see line 3255)

attrib.c:4952 ntfs_attr_remove() warn:
  variable dereferenced before check 'ni' (see line 4951)

dir.c:1035 ntfs_readdir() error:
  we previously assumed 'private' could be null (see line 850)

Signed-off-by: Hyunchul Lee <hyc.lee@gmail.com>
Signed-off-by: Namjae Jeon <linkinjeon@kernel.org>
fs/ntfs/attrib.c
fs/ntfs/dir.c
fs/ntfs/inode.c
fs/ntfs/lcnalloc.c
fs/ntfs/runlist.c