public inbox for ntfs3@lists.linux.dev
 help / color / mirror / Atom feed
* [PATCH] ntfs: fix potential uninitialized symbol err
@ 2023-08-18  9:17 Ferry Meng
  0 siblings, 0 replies; only message in thread
From: Ferry Meng @ 2023-08-18  9:17 UTC (permalink / raw)
  To: Konstantin Komarov, ntfs3; +Cc: LKML, Ferry Meng

Fix smatch warning:

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

Signed-off-by: Ferry Meng <mengferry@linux.alibaba.com>

diff --git a/fs/ntfs3/attrib.c b/fs/ntfs3/attrib.c
index a9d82bbb4729..f027c35c7f5f 100644
--- a/fs/ntfs3/attrib.c
+++ b/fs/ntfs3/attrib.c
@@ -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;
 
-- 
2.19.1.6.gb485710b


^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2023-08-18  9:17 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-08-18  9:17 [PATCH] ntfs: fix potential uninitialized symbol err Ferry Meng

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox