fs/ntfs3: Fix using uninitialized value n when calling indx_read
authorYan Lei <chinayanlei2002@163.com>
Sun, 10 Apr 2022 06:09:00 +0000 (09:09 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 25 Aug 2022 09:40:16 +0000 (11:40 +0200)
commitecda80a345caddaa32369d266de49a0c28574835
treef8bc5b82cf9148012d3cf7444c0b0d5ef379281e
parent69979b5e308f97dabb2d3334dc322090053bfb69
fs/ntfs3: Fix using uninitialized value n when calling indx_read

commit ae5a4e46916fc307288227b64c1d062352eb93b7 upstream.

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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
fs/ntfs3/index.c