fs/ntfs3: Fix using uninitialized value n when calling indx_read

This value is checked in indx_read, so it must be initialized
Fixes: 82cae269cf ("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>
This commit is contained in:
Yan Lei 2022-04-10 09:09:00 +03:00 committed by Konstantin Komarov
parent dc8965ab5e
commit ae5a4e4691
No known key found for this signature in database
GPG key ID: A9B0331F832407B6

View file

@ -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;