summaryrefslogtreecommitdiffstats
path: root/fs/ntfs3/index.c
diff options
context:
space:
mode:
authorYan Lei <chinayanlei2002@163.com>2022-04-10 09:09:00 +0300
committerKonstantin Komarov <almaz.alexandrovich@paragon-software.com>2022-06-09 19:16:08 +0300
commitae5a4e46916fc307288227b64c1d062352eb93b7 (patch)
tree1d6d10118fc234c6d132cc08149c699d8912ce62 /fs/ntfs3/index.c
parentdc8965ab5e338abfd8dfd65d12a62ad5be65a776 (diff)
downloadlinux-ae5a4e46916fc307288227b64c1d062352eb93b7.tar.bz2
fs/ntfs3: Fix using uninitialized value n when calling indx_read
This value is checked in indx_read, so it must be initialized Fixes: 82cae269cfa9 ("fs/ntfs3: Add initialization of super block") Signed-off-by: Yan Lei <chinayanlei2002@163.com> Signed-off-by: Konstantin Komarov <almaz.alexandrovich@paragon-software.com>
Diffstat (limited to 'fs/ntfs3/index.c')
-rw-r--r--fs/ntfs3/index.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/ntfs3/index.c b/fs/ntfs3/index.c
index 8468cca5d54d..84ccc1409874 100644
--- a/fs/ntfs3/index.c
+++ b/fs/ntfs3/index.c
@@ -1987,7 +1987,7 @@ static int indx_free_children(struct ntfs_index *indx, struct ntfs_inode *ni,
const struct NTFS_DE *e, bool trim)
{
int err;
- struct indx_node *n;
+ struct indx_node *n = NULL;
struct INDEX_HDR *hdr;
CLST vbn = de_get_vbn(e);
size_t i;