Skip to content

Commit

Permalink
fs/ntfs3: Fix using uninitialized value n when calling indx_read
Browse files Browse the repository at this point in the history
This value is checked in indx_read, so it must be initialized
Fixes: 82cae26 ("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>
  • Loading branch information
Magicyan2020 authored and aalexandrovich committed Jun 9, 2022
1 parent dc8965a commit ae5a4e4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion fs/ntfs3/index.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit ae5a4e4

Please sign in to comment.