]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
ntfs: fix uninitialized variable in ntfs_write_simple_iomap_begin_non_resident
authorNamjae Jeon <linkinjeon@kernel.org>
Fri, 10 Apr 2026 11:29:44 +0000 (20:29 +0900)
committerNamjae Jeon <linkinjeon@kernel.org>
Sat, 18 Apr 2026 02:33:05 +0000 (11:33 +0900)
commit8a59a2d84fa3de2b4bbb8759b52e62c9c06d9d32
tree2eab33a713bdcbe133b5563670378957d58e18e9
parentcf29a21b3d9105c5309e679ba875df1e987cabfa
ntfs: fix uninitialized variable in ntfs_write_simple_iomap_begin_non_resident

Smatch reported that err could be used uninitialized if the code path
does not enter the first ntfs_zero_range() block.

Reported-by: Dan Carpenter <error27@gmail.com>
Reviewed-by: Hyunchul Lee <hyc.lee@gmail.com>
Signed-off-by: Namjae Jeon <linkinjeon@kernel.org>
fs/ntfs/iomap.c