Skip to contentSkip to conversation

ntfs: fix potential uninitialized symbol err

PATCH New Ferry Meng 1 participant 1 message Aug 18, 2023 NTFS3 filesystem

lore
Share & tools
lore

Ferry Meng

author
#0 lore raw

PATCH 1/1 ntfs: fix potential uninitialized symbol err

Fix smatch warning:

fs/ntfs3/attrib.c:1503 attr_wof_frame_info() error: uninitialized symbol 'err'.

fs/ntfs3/attrib.c +1 -1
index a9d82bbb4729..f027c35c7f5f 100644
@@ -1372,7 +1372,7 @@ int attr_wof_frame_info(struct ntfs_inode *ni, struct ATTRIB *attr,
 	u8 bytes_per_off;
 	char *addr;
 	struct page *page;
-	int i, err;
+	int i, err = 0;
 	__le32 *off32;
 	__le64 *off64;
 
Signature · 1 line
2.19.1.6.gb485710b