Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

fs/ntfs3: fix Smatch warnings

Initialize err in ni_allocate_da_blocks_locked() and correct the
pre_alloc condition in attr_allocate_clusters().

Suggested-by: Dan Carpenter <error27@gmail.com>
Signed-off-by: Konstantin Komarov <almaz.alexandrovich@paragon-software.com>

+2 -2
+1 -1
fs/ntfs3/attrib.c
··· 173 173 174 174 if (err == -ENOSPC && pre) { 175 175 pre = 0; 176 - if (*pre_alloc) 176 + if (pre_alloc) 177 177 *pre_alloc = 0; 178 178 continue; 179 179 }
+1 -1
fs/ntfs3/frecord.c
··· 3267 3267 */ 3268 3268 int ni_allocate_da_blocks_locked(struct ntfs_inode *ni) 3269 3269 { 3270 - int err; 3270 + int err = 0; 3271 3271 3272 3272 if (!ni->file.run_da.count) 3273 3273 return 0;